src/Generator/GeneratorManager.php
public function getGenerator($name): GeneratorInterface
    {
        if (isset($this->generators[$name])) {
            return $this->generators[$name];
        }

        throw new Exception(sprintf('Generator %s does not exist.', $name));
    }
public function getGenerator($name): GeneratorInterface
    {
        if (isset($this->generators[$name])) {
            return $this->generators[$name];
        }

        throw new Exception(sprintf('Generator %s does not exist.', $name));
    }
public function getGenerator ( $ name ) : GeneratorInterface { if ( isset ( $ this -> generators [ $ name ] ) ) { return $ this -> generators [ $ name ] ; } throw new Exception ( sprintf ( 'Generator %s does not exist.' , $ name ) ) ; }
Returns one generator by name.

@param $name

@return GeneratorInterface

@throws Exception
Returns one generator by name .