Yoast\WP\SEO\Editors\Domain\Analysis_Features

Analysis_Feature::__construct()publicYoast 1.0

The constructor.

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

Хуков нет.

Возвращает

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

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

$Analysis_Feature = new Analysis_Feature();
$Analysis_Feature->__construct( $is_enabled, $name, $legacy_key );
$is_enabled(true|false) (обязательный)
If the feature is enabled.
$name(строка) (обязательный)
What the identifier of the feature is.
$legacy_key(строка) (обязательный)
What the identifier is for the old script data array.

Код Analysis_Feature::__construct() Yoast 25.0

public function __construct( bool $is_enabled, string $name, string $legacy_key ) {
	$this->is_enabled = $is_enabled;
	$this->name       = $name;
	$this->legacy_key = $legacy_key;
}