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\Definition\Call;
13 use Behat\Behat\Definition\Definition;
14 use Behat\Testwork\Call\RuntimeCallee;
17 * Represents a step definition created and executed in the runtime.
19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 abstract class RuntimeDefinition extends RuntimeCallee implements Definition
33 * Initializes definition.
36 * @param string $pattern
37 * @param callable $callable
38 * @param null|string $description
40 public function __construct($type, $pattern, $callable, $description = null)
43 $this->pattern = $pattern;
45 parent::__construct($callable, $description);
51 public function getType()
59 public function getPattern()
61 return $this->pattern;
67 public function __toString()
69 return $this->getType() . ' ' . $this->getPattern();