Yoast\WP\SEO\Builders

Primary_Term_Builder::__constructpublicYoast 1.0

Primary_Term_Builder constructor.

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

Хуков нет.

Возвращает

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

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

$Primary_Term_Builder = new Primary_Term_Builder();
$Primary_Term_Builder->__construct( $repository, $indexable_helper, $primary_term, $meta );
$repository(Primary_Term_Repository) (обязательный)
The primary term repository.
$indexable_helper(Indexable_Helper) (обязательный)
The indexable helper.
$primary_term(Primary_Term_Helper) (обязательный)
The primary term helper.
$meta(Meta_Helper) (обязательный)
The meta helper.

Код Primary_Term_Builder::__construct() Yoast 27.4

public function __construct(
	Primary_Term_Repository $repository,
	Indexable_Helper $indexable_helper,
	Primary_Term_Helper $primary_term,
	Meta_Helper $meta
) {
	$this->repository       = $repository;
	$this->indexable_helper = $indexable_helper;
	$this->primary_term     = $primary_term;
	$this->meta             = $meta;
}