コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function getStepDefinition()
 {
     return $this->searchResult->getMatchedDefinition();
 }
コード例 #2
0
 /**
  * Creates definition call.
  *
  * @param Environment  $env
  * @param FeatureNode  $feature
  * @param SearchResult $search
  * @param StepNode     $step
  *
  * @return DefinitionCall
  */
 private function createDefinitionCall(Environment $env, FeatureNode $feature, SearchResult $search, StepNode $step)
 {
     $definition = $search->getMatchedDefinition();
     $arguments = $search->getMatchedArguments();
     return new DefinitionCall($env, $feature, $step, $definition, $arguments);
 }