public function getComments($postId = false)
    {
        $cArgs = [
            'author__in' => $this->ID,
            'orderby' => 'comment_date_gmt'
        ];
        if ($postId) {
            $cArgs['post_id'] = $postId;
        }
        $comments = [];
        foreach (get_comments($cArgs) as $c) {
            $comments[] = Comment::find($c->comment_ID);
        }
        return $comments;
    }
public function getComments($postId = false)
    {
        $cArgs = [
            'author__in' => $this->ID,
            'orderby' => 'comment_date_gmt'
        ];
        if ($postId) {
            $cArgs['post_id'] = $postId;
        }
        $comments = [];
        foreach (get_comments($cArgs) as $c) {
            $comments[] = Comment::find($c->comment_ID);
        }
        return $comments;
    }
public function getComments ( $ postId = false ) { $ cArgs = [ 'author__in' => $ this -> ID , 'orderby' => 'comment_date_gmt' ] ; if ( $ postId ) { $ cArgs [ 'post_id' ] = $ postId ; } $ comments = [ ] ; foreach ( get_comments ( $ cArgs ) as $ c ) { $ comments [ ] = Comment :: find ( $ c -> comment_ID ) ; } return $ comments ; }
Return all comment

@return array<Comment>
Return all comment