Yoast\WP\Lib
Model::__get() public Yoast 1.0
Magic getter method, allows $model->property access to data.
{} Это метод класса: Model{}
Хуков нет.
Возвращает
null/Строку. The value of the property
Использование
$Model = new Model(); $Model->__get( $property );
- $property(строка) (обязательный)
- The property to get.
Код Model::__get() Model:: get Yoast 15.9.1
public function __get( $property ) {
$value = $this->orm->get( $property );
if ( $value !== null && \in_array( $property, $this->boolean_columns, true ) ) {
return (bool) $value;
}
if ( $value !== null && \in_array( $property, $this->int_columns, true ) ) {
return (int) $value;
}
return $value;
}