$rootClass->
addMethod('getExtensionAlias', '
public function NAME(): string
{
return \'ALIAS\';
}',
['ALIAS' =>
$rootNode->
getPath()]);
$this->
writeClasses();
} return function D
) use ($path,
$rootClass) { require_once $path;
$className =
$rootClass->
getFqcn();
return new $className();
};
} private function getFullPath(ClassBuilder
$class): string
{ $directory =
$this->outputDir.\DIRECTORY_SEPARATOR.
$class->
getDirectory();
if (!
is_dir($directory)) { @
mkdir($directory, 0777, true
);
}