API / Minn\Runtime / CommentQuery

CommentQuery final readonly class

Minn\Runtime\CommentQuery · public/minn/src/Minn/Runtime/CommentQuery.php · 28 lines

The approval breakdown wp_count_comments reports (comment lists run through WP_Comment_Query and Minn\Runtime\CommentQueryRunner).

Constants and properties

privatereadonly Minn\Db $db

Promoted from the constructor.

Public

new__construct(Minn\Db $db)#
methodbreakdown(int $postId): array#

The counts wp_count_comments reports, for one post or the site. @return array<string, int>

@return array<string, int>