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)));
}