Yoast\WP\SEO\Surfaces

Open_Graph_Helpers_Surface::__set()publicYoast 1.0

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

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

Хуков нет.

Возвращает

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

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

$Open_Graph_Helpers_Surface = new Open_Graph_Helpers_Surface();
$Open_Graph_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.

Код Open_Graph_Helpers_Surface::__set() Yoast 22.8

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 );
}