@@ 59-65 (lines=7) @@ | ||
56 | * |
|
57 | * @return InlineEntryInterface |
|
58 | */ |
|
59 | public function toPhpCode($variableName, $containerVariable, array $usedVariables) |
|
60 | { |
|
61 | $dumpedArguments = ValueUtils::dumpArguments($this->arguments, $containerVariable, $usedVariables); |
|
62 | $codeLine = sprintf('%s->%s(%s);', $variableName, $this->methodName, $dumpedArguments->getExpression()); |
|
63 | ||
64 | return new InlineEntry('', $dumpedArguments->getStatements().$codeLine, $dumpedArguments->getUsedVariables()); |
|
65 | } |
|
66 | } |
|
67 |
@@ 43-49 (lines=7) @@ | ||
40 | * |
|
41 | * @return InlineEntryInterface |
|
42 | */ |
|
43 | public function toPhpCode($variableName, $containerVariable, array $usedVariables) |
|
44 | { |
|
45 | $inlineEntry = ValueUtils::dumpValue($this->value, $containerVariable, $usedVariables); |
|
46 | $codeLine = sprintf('%s->%s = %s;', $variableName, $this->propertyName, $inlineEntry->getExpression()); |
|
47 | ||
48 | return new InlineEntry('', $inlineEntry->getStatements().$codeLine, $inlineEntry->getUsedVariables()); |
|
49 | } |
|
50 | } |
|
51 |