PHP Interface Pinq\Parsing\IParser

Author: Elliot Levin ([email protected])
Show file Open project: timetoogo/pinq Interface Usage Examples

Public Methods

Method Description
getReflection ( callable $function ) : Pinq\Parsing\IFunctionReflection Gets a function reflection from the supplied function.
parse ( Pinq\Parsing\IFunctionReflection $reflection ) : Pinq\Parsing\IFunctionStructure Parses the supplied function and returns it's declaration and body structure.

Method Details

getReflection() public method

Gets a function reflection from the supplied function.
public getReflection ( callable $function ) : Pinq\Parsing\IFunctionReflection
$function callable
return Pinq\Parsing\IFunctionReflection

parse() public method

The __LINE__ magic constant should be resolved to is correct value.
public parse ( Pinq\Parsing\IFunctionReflection $reflection ) : Pinq\Parsing\IFunctionStructure
$reflection Pinq\Parsing\IFunctionReflection
return Pinq\Parsing\IFunctionStructure