/** * {@inheritdoc} */ public function getStepDefinition() { return $this->searchResult->getMatchedDefinition(); }
/** * 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); }