4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Tester\Result;
13 use Behat\Behat\Definition\SearchResult;
16 * Represents a skipped step result.
18 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 final class SkippedStepResult implements StepResult, DefinedStepResult
25 private $searchResult;
28 * Initializes step result.
30 * @param SearchResult $searchResult
32 public function __construct(SearchResult $searchResult)
34 $this->searchResult = $searchResult;
38 * Returns definition search result.
40 * @return SearchResult
42 public function getSearchResult()
44 return $this->searchResult;
50 public function getStepDefinition()
52 return $this->searchResult->getMatchedDefinition();
58 public function isPassed()
66 public function getResultCode()