src/Behat/Behat/HelperContainer/Call/Filter/ServicesResolver.php
private function repackageCallWithNewArguments(Call $call, array $newArguments)
    {
        if ($call instanceof DefinitionCall) {
            return $this->repackageDefinitionCall($call, $newArguments);
        }

        if ($call instanceof TransformationCall) {
            return $this->repackageTransformationCall($call, $newArguments);
        }

        throw new UnsupportedCallException(
            sprintf(
                'ServicesResolver can not filter `%s` call.',
                get_class($call)
            ), $call
        );
    }
private function repackageCallWithNewArguments(Call $call, array $newArguments)
    {
        if ($call instanceof DefinitionCall) {
            return $this->repackageDefinitionCall($call, $newArguments);
        }

        if ($call instanceof TransformationCall) {
            return $this->repackageTransformationCall($call, $newArguments);
        }

        throw new UnsupportedCallException(
            sprintf(
                'ServicesResolver can not filter `%s` call.',
                get_class($call)
            ), $call
        );
    }
private function repackageCallWithNewArguments ( Call $ call , array $ newArguments ) { if ( $ call instanceof DefinitionCall ) { return $ this -> repackageDefinitionCall ( $ call , $ newArguments ) ; } if ( $ call instanceof TransformationCall ) { return $ this -> repackageTransformationCall ( $ call , $ newArguments ) ; } throw new UnsupportedCallException ( sprintf ( 'ServicesResolver can not filter `%s` call.' , get_class ( $ call ) ) , $ call ) ; }
Repackages old calls with new arguments.

@param Call  $call
@param array $newArguments

@return DefinitionCall|TransformationCall

@throws UnsupportedCallException
Repackages old calls with new arguments .