src/PhpToZephir/Converter/Dispatcher.php
private function getClass($type)
    {
        if (isset($this->classes[$type]) === false) {
            if ($this->printerCollection->offsetExists($type) === false) {
                throw new \Exception(sprintf('Printer "%s" does not exist', $type));
            }
            $className = $this->printerCollection->offsetGet($type);

            $this->classes[$type] = $this->dynamicConstruct($className);
        }

        return $this->classes[$type];
    }
private function getClass($type)
    {
        if (isset($this->classes[$type]) === false) {
            if ($this->printerCollection->offsetExists($type) === false) {
                throw new \Exception(sprintf('Printer "%s" does not exist', $type));
            }
            $className = $this->printerCollection->offsetGet($type);

            $this->classes[$type] = $this->dynamicConstruct($className);
        }

        return $this->classes[$type];
    }
private function getClass ( $ type ) { if ( isset ( $ this -> classes [ $ type ] ) === false ) { if ( $ this -> printerCollection -> offsetExists ( $ type ) === false ) { throw new \ Exception ( sprintf ( 'Printer "%s" does not exist' , $ type ) ) ; } $ className = $ this -> printerCollection -> offsetGet ( $ type ) ; $ this -> classes [ $ type ] = $ this -> dynamicConstruct ( $ className ) ; } return $ this -> classes [ $ type ] ; }
@param string $type

@throws \Exception

@return object
@param string $type