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

__get() public méthode

Used to retrieve service handlers
public __get ( string $name )
$name string
    public function __get($name)
    {
        $available = $this->getAvailableHandlers();
        if (array_key_exists($name, $available)) {
            if ($this->availableHandlers[$name] instanceof AbstractServiceHandler) {
                return $this->availableHandlers[$name];
            } else {
                $class = __NAMESPACE__ . '\\' . self::getOriginalServiceName(get_class($this)) . '\\Handler\\' . ucfirst($name) . 'Handler';
                $this->availableHandlers[$name] = new $class($this);
                return $this->availableHandlers[$name];
            }
        }
    }