Behat\Behat\Transformation\Transformation\RowBasedTableTransformation::transformArgument PHP Method

transformArgument() public method

public transformArgument ( CallCenter $callCenter, Behat\Behat\Definition\Call\DefinitionCall $definitionCall, $argumentIndex, $argumentValue )
$callCenter Behat\Testwork\Call\CallCenter
$definitionCall Behat\Behat\Definition\Call\DefinitionCall
    public function transformArgument(CallCenter $callCenter, DefinitionCall $definitionCall, $argumentIndex, $argumentValue)
    {
        $call = new TransformationCall($definitionCall->getEnvironment(), $definitionCall->getCallee(), $this, array($argumentValue));
        $result = $callCenter->makeCall($call);
        if ($result->hasException()) {
            throw $result->getException();
        }
        return $result->getReturn();
    }