Behat\Behat\Transformation\Transformation\TableRowTransformation::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)
    {
        $rows = array();
        foreach ($argumentValue as $row) {
            $call = new TransformationCall($definitionCall->getEnvironment(), $definitionCall->getCallee(), $this, array($row));
            $result = $callCenter->makeCall($call);
            if ($result->hasException()) {
                throw $result->getException();
            }
            $rows[] = $result->getReturn();
        }
        return $rows;
    }