private function findComment($commentId, $authorToken)
    {
        $comment = $this
            ->commentRepository
            ->findOneBy([
                'id' => $commentId,
                'authorToken' => $authorToken,
            ]);

        if (!($comment instanceof CommentInterface)) {
            throw new EntityNotFoundException('Comment not found');
        }

        return $comment;
    }
private function findComment($commentId, $authorToken)
    {
        $comment = $this
            ->commentRepository
            ->findOneBy([
                'id' => $commentId,
                'authorToken' => $authorToken,
            ]);

        if (!($comment instanceof CommentInterface)) {
            throw new EntityNotFoundException('Comment not found');
        }

        return $comment;
    }
private function findComment ( $ commentId , $ authorToken ) { $ comment = $ this -> commentRepository -> findOneBy ( [ 'id' => $ commentId , 'authorToken' => $ authorToken , ] ) ; if ( ! ( $ comment instanceof CommentInterface ) ) { throw new EntityNotFoundException ( 'Comment not found' ) ; } return $ comment ; }
Find comment.

@param string $commentId   Comment id
@param string $authorToken Author token

@return CommentInterface Comment

@throws EntityNotFoundException Comment not found
Find comment .