Example WordPress plugin showing how to use the OptionsResolver Component in a WordPress plugin.
$popular = new \Example\PopularPosts( [ 'post_type' => 'post' ] );
$posts = $popular->doQuery()->getQuery()->get_posts();
$author = new \Example\AuthorPosts( [ 'author' => 2 ] );
$posts = $author->getQuery()->get_posts();