src/Definition/MethodCall.php
public function toPhpCode($variableName, $containerVariable, array $usedVariables)
    {
        $dumpedArguments = ValueUtils::dumpArguments($this->arguments, $containerVariable, $usedVariables);
        $codeLine = sprintf('%s->%s(%s);', $variableName, $this->methodName, $dumpedArguments->getExpression());

        return new InlineEntry('', $dumpedArguments->getStatements().$codeLine, $dumpedArguments->getUsedVariables());
    }
public function toPhpCode($variableName, $containerVariable, array $usedVariables)
    {
        $dumpedArguments = ValueUtils::dumpArguments($this->arguments, $containerVariable, $usedVariables);
        $codeLine = sprintf('%s->%s(%s);', $variableName, $this->methodName, $dumpedArguments->getExpression());

        return new InlineEntry('', $dumpedArguments->getStatements().$codeLine, $dumpedArguments->getUsedVariables());
    }
Generates PHP code for the line.

@param string $variableName
@param string $containerVariable
@param array  $usedVariables

@return InlineEntryInterface