Printer
class Printer
Generates PHP code.
Properties
protected string | $indentation | ||
protected int | $linesBetweenProperties | ||
protected int | $linesBetweenMethods | ||
protected string | $returnTypeColon |
Methods
string
string
string
string
string
string
setTypeResolving(bool $state = true)
No description
string
indent(string $s)
No description
string
dump($var, int $column = 0)
No description
string
string
printParameters(Closure|GlobalFunction|Method $function, PhpNamespace $namespace = null)
No description
string
Details
at line 39
string
printFunction(GlobalFunction $function, PhpNamespace $namespace = null)
No description
at line 51
string
printClosure(Closure $closure)
No description
at line 70
string
printArrowFunction(Closure $closure)
No description
at line 86
string
printMethod(Method $method, PhpNamespace $namespace = null)
No description
at line 108
string
printClass(ClassType $class, PhpNamespace $namespace = null)
No description
at line 167
string
printNamespace(PhpNamespace $namespace)
No description
at line 192
string
printFile(PhpFile $file)
No description
at line 210
Printer
setTypeResolving(bool $state = true)
No description
at line 217
protected string
indent(string $s)
No description
at line 224
protected string
dump($var, int $column = 0)
No description
at line 230
protected string
printUses(PhpNamespace $namespace)
No description
at line 250
string
printParameters(Closure|GlobalFunction|Method $function, PhpNamespace $namespace = null)
No description
at line 270
string
printType(string|null $type, bool $nullable = false, PhpNamespace $namespace = null)
No description
Traits
SmartObject