Pinq\Parsing\IParser::getReflection PHP Method

getReflection() public method

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

Usage Example

Esempio n. 1
0
 protected final function assertParsedAs(callable $function, array $expressions)
 {
     if ($this->currentImplementation === null) {
         throw new \Exception('Please remember to use the @dataProvider annotation to test all the implementations.');
     }
     $this->assertEquals($expressions, $this->currentImplementation->parse($this->currentImplementation->getReflection($function))->getBodyExpressions());
 }
All Usage Examples Of Pinq\Parsing\IParser::getReflection