PhpSpec\Loader\Node\ExampleNode::getFunctionReflection PHP Method

getFunctionReflection() public method

public getFunctionReflection ( ) : ReflectionFunctionAbstract
return ReflectionFunctionAbstract
    public function getFunctionReflection()
    {
        return $this->function;
    }

Usage Example

 /**
  * Generates DI related stuff via parameter validator
  *
  * @param ExampleNode $example
  * @param Specification $context
  * @param MatcherManager $matchers
  * @param CollaboratorManager $collaborators
  *
  * @return $this
  */
 public function prepare(ExampleNode $example, Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators)
 {
     if ($example->getSpecification()->getClassReflection()->hasMethod('let')) {
         $this->parameterValidator->validate($example->getSpecification()->getClassReflection()->getMethod('let'));
     }
     $this->parameterValidator->validate($example->getFunctionReflection());
     return $this;
 }
All Usage Examples Of PhpSpec\Loader\Node\ExampleNode::getFunctionReflection