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\Transformation\Call;
13 use Behat\Behat\Transformation\Transformation;
14 use Behat\Testwork\Call\RuntimeCallee;
17 * Transformation that is created and executed in the runtime.
19 * @deprecated Will be removed in 4.0. Use specific transformations instead
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 final class RuntimeTransformation extends RuntimeCallee implements Transformation
31 * Initializes transformation.
33 * @param string $pattern
34 * @param callable $callable
35 * @param null|string $description
37 public function __construct($pattern, $callable, $description = null)
39 $this->pattern = $pattern;
41 parent::__construct($callable, $description);
47 public function getPattern()
49 return $this->pattern;
55 public function __toString()
57 return 'Transform ' . $this->getPattern();