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\Transformer;
13 use Behat\Behat\Definition\Call\DefinitionCall;
16 * Transforms a single argument value.
18 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 interface ArgumentTransformer
23 * Checks if transformer supports argument.
25 * @param DefinitionCall $definitionCall
26 * @param integer|string $argumentIndex
27 * @param mixed $argumentValue
31 public function supportsDefinitionAndArgument(DefinitionCall $definitionCall, $argumentIndex, $argumentValue);
34 * Transforms argument value using transformation and returns a new one.
36 * @param DefinitionCall $definitionCall
37 * @param integer|string $argumentIndex
38 * @param mixed $argumentValue
42 public function transformArgument(DefinitionCall $definitionCall, $argumentIndex, $argumentValue);