Scalr\Tests\Fixtures\Model\Entity\TestEntity2::__get PHP Метод

__get() публичный Метод

Gets the values of the fields that require initialization.
public __get ( string $name ) : mixed
$name string Name of property that is accessed
Результат mixed Returns property value
    public function __get($name)
    {
        switch ($name) {
            case 'settings':
                if (empty($this->_settings)) {
                    $this->_settings = new SettingsCollection('Scalr\\Tests\\Fixtures\\Model\\Entity\\TestEntitySetting', [['testEntityId' => &$this->id]], ['testEntityId' => &$this->id]);
                }
                return $this->_settings;
            default:
                return parent::__get($name);
        }
    }
TestEntity2