Yoast\WP\SEO\Bulk_Editor\Application\Posts

Posts_Repository::__constructpublicYoast 1.0

The constructor.

Метод класса: Posts_Repository{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Posts_Repository = new Posts_Repository();
$Posts_Repository->__construct( $indexable_posts_collector, $post_meta_posts_collector, $indexable_helper );
$indexable_posts_collector(Indexable_Posts_Collector) (обязательный)
The collector that reads from the indexable table.
$post_meta_posts_collector(Post_Meta_Posts_Collector) (обязательный)
The collector that reads from post meta.
$indexable_helper(Indexable_Helper) (обязательный)
The indexable helper.

Код Posts_Repository::__construct() Yoast 28.3

public function __construct(
	Indexable_Posts_Collector $indexable_posts_collector,
	Post_Meta_Posts_Collector $post_meta_posts_collector,
	Indexable_Helper $indexable_helper
) {
	$this->indexable_posts_collector = $indexable_posts_collector;
	$this->post_meta_posts_collector = $post_meta_posts_collector;
	$this->indexable_helper          = $indexable_helper;
}