Yoast\WP\SEO
Main::__get() public Yoast 1.0
Magic getter for retrieving a property.
{} Это метод класса: Main{}
Хуков нет.
Возвращает
Строку. The value of the property.
Использование
$Main = new Main(); $Main->__get( $property );
- $property(строка) (обязательный)
- The property to retrieve.
Код Main::__get() Main:: get Yoast 15.6.2
public function __get( $property ) {
if ( isset( $this->{$property} ) ) {
$this->{$property} = $this->container->get( $this->surfaces[ $property ] );
return $this->{$property};
}
throw new Exception( "Property $property does not exist." );
}