Yoast\WP\SEO\Surfaces\Values

Meta::__set()publicYoast 1.0

Prevents setting dynamic properties and overwriting the value of declared properties from an inaccessible context.

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

Хуков нет.

Возвращает

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

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

$Meta = new Meta();
$Meta->__set( $name, $value ) // @phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed -- __set must have a name and value - PHPCS #3715.;
$name(строка) (обязательный)
The property name.
$value(разное) (обязательный)
The property value.

Код Meta::__set() Yoast 22.4

public function __set( $name, $value ) { // @phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed -- __set must have a name and value - PHPCS #3715.
	throw Forbidden_Property_Mutation_Exception::cannot_set_because_property_is_immutable( $name );
}