src/Hydrator/Generated/Generator.php
public function getHydratorClass($class)
    {
        $inflector = $this->configuration->getInflector();

        $realClass = $inflector->getUserClassName($class);
        $hydratorClass = $inflector->getGeneratedClassName($realClass, ['generator' => get_class($this)]);

        if (!class_exists($hydratorClass)) {
            $ast = $this->generateAst($realClass, $hydratorClass);

            $this->configuration->getGeneratorStrategy()->generate($ast);
            $this->configuration->getAutoloader()->__invoke($hydratorClass);
        }

        return $hydratorClass;
    }
public function getHydratorClass($class)
    {
        $inflector = $this->configuration->getInflector();

        $realClass = $inflector->getUserClassName($class);
        $hydratorClass = $inflector->getGeneratedClassName($realClass, ['generator' => get_class($this)]);

        if (!class_exists($hydratorClass)) {
            $ast = $this->generateAst($realClass, $hydratorClass);

            $this->configuration->getGeneratorStrategy()->generate($ast);
            $this->configuration->getAutoloader()->__invoke($hydratorClass);
        }

        return $hydratorClass;
    }
public function getHydratorClass ( $ class ) { $ inflector = $ this -> configuration -> getInflector ( ) ; $ realClass = $ inflector -> getUserClassName ( $ class ) ; $ hydratorClass = $ inflector -> getGeneratedClassName ( $ realClass , [ 'generator' => get_class ( $ this ) ] ) ; if ( ! class_exists ( $ hydratorClass ) ) { $ ast = $ this -> generateAst ( $ realClass , $ hydratorClass ) ; $ this -> configuration -> getGeneratorStrategy ( ) -> generate ( $ ast ) ; $ this -> configuration -> getAutoloader ( ) -> __invoke ( $ hydratorClass ) ; } return $ hydratorClass ; }
Returns a hydrator class for a class name

@param string $class

@return string
Returns a hydrator class for a class name