protected function getGerritCommentByIdentifier($changeSetId, $reviewer, $timestamp, $number)
    {
        $dbHandle = $this->getDatabase()->getDatabaseConnection();

        $query = 'SELECT `id`, `changeset`, `timestamp`, `reviewer`, `message`
                  FROM ' . Database::TABLE_COMMENT . '
                  WHERE `changeset` = :changeset
                        AND `timestamp` = :timestamp
                        AND `reviewer` = :reviewer
                        AND `number` = :number';
        $statement = $dbHandle->prepare($query);

        $statement->bindParam(':changeset', $changeSetId, \PDO::PARAM_INT);
        $statement->bindParam(':timestamp', $timestamp, \PDO::PARAM_INT);
        $statement->bindParam(':reviewer', $reviewer, \PDO::PARAM_INT);
        $statement->bindParam(':number', $number, \PDO::PARAM_STR);
        $executeResult = $statement->execute();

        $statement = $this->getDatabase()->checkQueryError($statement, $executeResult);
        return $statement->fetch(\PDO::FETCH_ASSOC);
    }
protected function getGerritCommentByIdentifier($changeSetId, $reviewer, $timestamp, $number)
    {
        $dbHandle = $this->getDatabase()->getDatabaseConnection();

        $query = 'SELECT `id`, `changeset`, `timestamp`, `reviewer`, `message`
                  FROM ' . Database::TABLE_COMMENT . '
                  WHERE `changeset` = :changeset
                        AND `timestamp` = :timestamp
                        AND `reviewer` = :reviewer
                        AND `number` = :number';
        $statement = $dbHandle->prepare($query);

        $statement->bindParam(':changeset', $changeSetId, \PDO::PARAM_INT);
        $statement->bindParam(':timestamp', $timestamp, \PDO::PARAM_INT);
        $statement->bindParam(':reviewer', $reviewer, \PDO::PARAM_INT);
        $statement->bindParam(':number', $number, \PDO::PARAM_STR);
        $executeResult = $statement->execute();

        $statement = $this->getDatabase()->checkQueryError($statement, $executeResult);
        return $statement->fetch(\PDO::FETCH_ASSOC);
    }
protected function getGerritCommentByIdentifier ( $ changeSetId , $ reviewer , $ timestamp , $ number ) { $ dbHandle = $ this -> getDatabase ( ) -> getDatabaseConnection ( ) ; $ query = 'SELECT `id`, `changeset`, `timestamp`, `reviewer`, `message`
                  FROM ' . Database :: TABLE_COMMENT . '
                  WHERE `changeset` = :changeset
                        AND `timestamp` = :timestamp
                        AND `reviewer` = :reviewer
                        AND `number` = :number' ; $ statement = $ dbHandle -> prepare ( $ query ) ; $ statement -> bindParam ( ':changeset' , $ changeSetId , \ PDO :: PARAM_INT ) ; $ statement -> bindParam ( ':timestamp' , $ timestamp , \ PDO :: PARAM_INT ) ; $ statement -> bindParam ( ':reviewer' , $ reviewer , \ PDO :: PARAM_INT ) ; $ statement -> bindParam ( ':number' , $ number , \ PDO :: PARAM_STR ) ; $ executeResult = $ statement -> execute ( ) ; $ statement = $ this -> getDatabase ( ) -> checkQueryError ( $ statement , $ executeResult ) ; return $ statement -> fetch ( \ PDO :: FETCH_ASSOC ) ; }
Returns a Comment by the unique identifier

@param int $changeSetId ID of a record from the changeset table
@param int $timestamp Timestamp of the comment
@param int $reviewer Reviewer of the comment
@param int $number Number (order number) of the comment
@return mixed
Returns a Comment by the unique identifier