Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Transformation / Transformer / ArgumentTransformer.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\Transformer;
12
13 use Behat\Behat\Definition\Call\DefinitionCall;
14
15 /**
16  * Transforms a single argument value.
17  *
18  * @author Konstantin Kudryashov <ever.zet@gmail.com>
19  */
20 interface ArgumentTransformer
21 {
22     /**
23      * Checks if transformer supports argument.
24      *
25      * @param DefinitionCall $definitionCall
26      * @param integer|string $argumentIndex
27      * @param mixed          $argumentValue
28      *
29      * @return Boolean
30      */
31     public function supportsDefinitionAndArgument(DefinitionCall $definitionCall, $argumentIndex, $argumentValue);
32
33     /**
34      * Transforms argument value using transformation and returns a new one.
35      *
36      * @param DefinitionCall $definitionCall
37      * @param integer|string $argumentIndex
38      * @param mixed          $argumentValue
39      *
40      * @return mixed
41      */
42     public function transformArgument(DefinitionCall $definitionCall, $argumentIndex, $argumentValue);
43 }