Scalr\Service\OpenStack\OpenStack::__get PHP Méthode

__get() public méthode

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 OpenStackException(sprintf('Invalid Service name "%s" for the OpenStack', $name));
    }