Yoast\WP\SEO\Services\Health_Check
Links_Table_Check::__construct
Constructor.
Метод класса: Links_Table_Check{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Links_Table_Check = new Links_Table_Check(); $Links_Table_Check->__construct( $runner, $reports, $should_index_links_conditional );
- $runner(Links_Table_Runner) (обязательный)
- The object that implements the actual health check.
- $reports(Links_Table_Reports) (обязательный)
- The object that generates WordPress-friendly results.
- $should_index_links_conditional(Should_Index_Links_Conditional) (обязательный)
- The conditional that checks if the links table should be indexed.
Код Links_Table_Check::__construct() Links Table Check:: construct Yoast 27.7
public function __construct(
Links_Table_Runner $runner,
Links_Table_Reports $reports,
Should_Index_Links_Conditional $should_index_links_conditional
) {
$this->runner = $runner;
$this->reports = $reports;
$this->should_index_links_conditional = $should_index_links_conditional;
$this->reports->set_test_identifier( $this->get_test_identifier() );
$this->set_runner( $this->runner );
}