Yoast\WP\SEO\Surfaces

Helpers_Surface::__set()publicYoast 1.0

Prevents setting dynamic properties and unsetting declared properties from an inaccessible context.

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

Хуков нет.

Возвращает

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

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

$Helpers_Surface = new Helpers_Surface();
$Helpers_Surface->__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.

Код Helpers_Surface::__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 );
}