public function output() { $argumentsCode = ""; if ($this->arguments !== null) { $arguments = $this->arguments->output(); $argumentsCode = $arguments[0]; } $called = $this->called->output(); $called = $called[0]; $codeLines = [$called . '.' . $this->functionName . '(' . $argumentsCode . ')']; return $codeLines; }
public function output() { $referenceOutput = $this->objectReference->output(); $referenceOutput = $referenceOutput[0]; return [$referenceOutput . '.' . $this->property->getPropertyName()]; }