Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Transformation / Call / TransformationCall.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Behat\Transformation\Call;
12
13 use Behat\Behat\Definition\Definition;
14 use Behat\Behat\Transformation\Transformation;
15 use Behat\Testwork\Environment\Call\EnvironmentCall;
16 use Behat\Testwork\Environment\Environment;
17
18 /**
19  * Call extended with transformation information.
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 final class TransformationCall extends EnvironmentCall
24 {
25     /**
26      * @var Definition
27      */
28     private $definition;
29
30     /**
31      * Initializes call.
32      *
33      * @param Environment    $environment
34      * @param Definition     $definition
35      * @param Transformation $transformation
36      * @param array          $arguments
37      */
38     public function __construct(
39         Environment $environment,
40         Definition $definition,
41         Transformation $transformation,
42         array $arguments
43     ) {
44         parent::__construct($environment, $transformation, $arguments);
45
46         $this->definition = $definition;
47     }
48
49     /**
50      * Returns transformed definition.
51      *
52      * @return Definition
53      */
54     public function getDefinition()
55     {
56         return $this->definition;
57     }
58 }