Scalr\Service\CloudStack\CloudStack::__get PHP Метод

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

It's used to retrieve service interface instances as public properties
public __get ( $name )
    public function __get($name)
    {
        $available = self::getAvailableServices();
        if (isset($available[$name])) {
            if (!isset($this->serviceInstances[$name])) {
                $this->serviceInstances[$name] = new $available[$name]($this);
            }
            return $this->serviceInstances[$name];
        }
        throw new CloudStackException(sprintf('Invalid Service name "%s" for the CloudStack', $name));
    }