Yoast\WP\SEO\Surfaces

Twitter_Helpers_Surface::__set()publicYoast 1.0

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

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код Twitter_Helpers_Surface::__set() Yoast 20.0

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