src/Guzzle/Service/Command/LocationVisitor/VisitorFlyweight.php
private function getKey($key)
    {
        if (!isset($this->cache[$key])) {
            if (!isset($this->mappings[$key])) {
                list($type, $name) = explode('.', $key);
                throw new InvalidArgumentException("No {$type} visitor has been mapped for {$name}");
            }
            $this->cache[$key] = new $this->mappings[$key];
        }

        return $this->cache[$key];
    }
private function getKey($key)
    {
        if (!isset($this->cache[$key])) {
            if (!isset($this->mappings[$key])) {
                list($type, $name) = explode('.', $key);
                throw new InvalidArgumentException("No {$type} visitor has been mapped for {$name}");
            }
            $this->cache[$key] = new $this->mappings[$key];
        }

        return $this->cache[$key];
    }
private function getKey ( $ key ) { if ( ! isset ( $ this -> cache [ $ key ] ) ) { if ( ! isset ( $ this -> mappings [ $ key ] ) ) { list ( $ type , $ name ) = explode ( '.' , $ key ) ; throw new InvalidArgumentException ( "No {$type} visitor has been mapped for {$name}" ) ; } $ this -> cache [ $ key ] = new $ this -> mappings [ $ key ] ; } return $ this -> cache [ $ key ] ; }
Get a visitor by key value name

@param string $key Key name to retrieve

@return mixed
@throws InvalidArgumentException
Get a visitor by key value name