public static function countReplies($commentId) { return isset(self::$commentReplies[$commentId]) ? count(self::$commentReplies[$commentId]) : 0; }
public function totalReplyCount(Comment $comment) { return DataSource::countReplies($comment->id); }