Blueprint
final class Blueprint
internal |
Generates blueprint of template class.
Methods
ClassType
generateTemplateClass(array $params, string|null $name = 'Template', string|null $extends = null)
No description
void
printClass(ClassType $class)
No description
string
clickableFile(string $file, int $line = 1)
No description
void
printVars(array $vars)
No description
void
addProperties(ClassType $class, array $props)
No description
void
addFunctions(ClassType $class, array $funcs)
No description
string
printParameters(Method $function, PhpNamespace|null $namespace = null)
No description
void
printBegin()
No description
void
printEnd()
No description
void
printHeader(string $string)
No description
void
printCode(string $code, string $lang = 'php')
No description
Details
at line 21
ClassType
generateTemplateClass(array $params, string|null $name = 'Template', string|null $extends = null)
No description
at line 51
void
printClass(ClassType $class)
No description
at line 57
string
clickableFile(string $file, int $line = 1)
No description
at line 67
void
printVars(array $vars)
No description
at line 85
void
addProperties(ClassType $class, array $props)
No description
at line 99
void
addFunctions(ClassType $class, array $funcs)
No description
at line 129
string
printParameters(Method $function, PhpNamespace|null $namespace = null)
No description
at line 149
void
printBegin()
No description
at line 157
void
printEnd()
No description
at line 163
void
printHeader(string $string)
No description
at line 171
void
printCode(string $code, string $lang = 'php')
No description