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

Parameters

array $params
string|null $name
string|null $extends

Return Value

ClassType

at line 51
void printClass(ClassType $class)

No description

Parameters

ClassType $class

Return Value

void

at line 57
string clickableFile(string $file, int $line = 1)

No description

Parameters

string $file
int $line

Return Value

string

at line 67
void printVars(array $vars)

No description

Parameters

array $vars

Return Value

void

at line 85
void addProperties(ClassType $class, array $props)

No description

Parameters

ClassType $class
array $props

Return Value

void

at line 99
void addFunctions(ClassType $class, array $funcs)

No description

Parameters

ClassType $class
array $funcs

Return Value

void

at line 129
string printParameters(Method $function, PhpNamespace|null $namespace = null)

No description

Parameters

Method $function
PhpNamespace|null $namespace

Return Value

string

at line 149
void printBegin()

No description

Return Value

void

at line 157
void printEnd()

No description

Return Value

void

at line 163
void printHeader(string $string)

No description

Parameters

string $string

Return Value

void

at line 171
void printCode(string $code, string $lang = 'php')

No description

Parameters

string $code
string $lang

Return Value

void