/** * @param Post $post * * @return bool */ public function isCommentingOpened(Post $post) { return Post::COMMENT_STATUS_OPEN == $post->getCommentStatus(); }