public function writeMethodCall($objectname, $methodname, PhpArgumentCollection $arguments = null, $static = false)
    {
        try {
            $this->writeVariable($objectname);

            if ($static === false) {
                $this->writeObjectOperator();
            } else {
                $this->writePaamayimNekudotayim();
            }

            $this->getStream()->write($methodname);
            $this->writeOpeningParenthesis();

            if (is_null($arguments) === false) {
                $this->writeArguments($arguments);
            }

            $this->writeClosingParenthesis();
        } catch (Exception $e) {
            $msg = "An error occured while writing a method call.";
            throw new StreamAccessException($msg, $this, 0, $e);
        }
    }
public function writeMethodCall($objectname, $methodname, PhpArgumentCollection $arguments = null, $static = false)
    {
        try {
            $this->writeVariable($objectname);

            if ($static === false) {
                $this->writeObjectOperator();
            } else {
                $this->writePaamayimNekudotayim();
            }

            $this->getStream()->write($methodname);
            $this->writeOpeningParenthesis();

            if (is_null($arguments) === false) {
                $this->writeArguments($arguments);
            }

            $this->writeClosingParenthesis();
        } catch (Exception $e) {
            $msg = "An error occured while writing a method call.";
            throw new StreamAccessException($msg, $this, 0, $e);
        }
    }
public function writeMethodCall ( $ objectname , $ methodname , PhpArgumentCollection $ arguments = null , $ static = false ) { try { $ this -> writeVariable ( $ objectname ) ; if ( $ static === false ) { $ this -> writeObjectOperator ( ) ; } else { $ this -> writePaamayimNekudotayim ( ) ; } $ this -> getStream ( ) -> write ( $ methodname ) ; $ this -> writeOpeningParenthesis ( ) ; if ( is_null ( $ arguments ) === false ) { $ this -> writeArguments ( $ arguments ) ; } $ this -> writeClosingParenthesis ( ) ; } catch ( Exception $ e ) { $ msg = "An error occured while writing a method call." ; throw new StreamAccessException ( $ msg , $ this , 0 , $ e ) ; } }
Write a method call in the current stream.

@param string $objectname The name of the variable where the object on which you want to call the method is stored e.g. 'foobar'.
@param string $methodname The name of the method you want to call.
@param PhpArgumentCollection $arguments A collection of PhpArgument objects.
@param boolean $static Whether or not the call is static.
@throws StreamAccessException If an error occurs while writing the method call.
Write a method call in the current stream .