BetterReflection\SourceLocator\Type\PhpInternalSourceLocator::createLocatedSource PHP Метод

createLocatedSource() защищенный Метод

{@inheritDoc}
protected createLocatedSource ( BetterReflection\Identifier\Identifier $identifier )
$identifier BetterReflection\Identifier\Identifier
    protected function createLocatedSource(Identifier $identifier)
    {
        if (!($name = $this->getInternalReflectionClassName($identifier))) {
            return null;
        }
        if ($stub = $this->getStub($name)) {
            return ["<?php\n\n" . $stub];
        }
        $stubber = $this->stubber;
        return new InternalLocatedSource("<?php\n\n" . $stubber(new ClassReflection($name)));
    }