class Ast

Methods

__construct()

No description

array|null
parse(string $code)

Parse PHP code into an AST.

string
proxy(string $className, string $sourceFilePath, string $sourceCode)

Generate proxy code for the given class.

Details

at line 19
__construct()

No description

at line 28
array|null parse(string $code)

Parse PHP code into an AST.

Parameters

string $code

Return Value

array|null

at line 39
string proxy(string $className, string $sourceFilePath, string $sourceCode)

Generate proxy code for the given class.

Parse the supplied class source, apply all registered AST visitors, and return the modified PHP code.

Parameters

string $className
string $sourceFilePath
string $sourceCode

Return Value

string