Scalr\Upgrade\AbstractEntity::__set PHP Метод

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

public __set ( $prop, $value )
    public function __set($prop, $value)
    {
        if (property_exists($this, $prop)) {
            $this->{$prop} = $value;
            return $this;
        }
        throw new Exception\UpgradeException(sprintf('Property "%s" does not exist for the class "%s".', $prop, get_class($this)));
    }