public function writeFunctionCall($funcname, PhpArgumentCollection $arguments = null)
    {
        try {
            $this->getStream()->write($funcname);
            $this->writeOpeningParenthesis();

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

            $this->writeClosingParenthesis();
        } catch (StreamException $e) {
            $msg = "An error occured while writing a function call.";
            throw new StreamAccessException($msg, $this, 0, $e);
        }
    }
public function writeFunctionCall($funcname, PhpArgumentCollection $arguments = null)
    {
        try {
            $this->getStream()->write($funcname);
            $this->writeOpeningParenthesis();

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

            $this->writeClosingParenthesis();
        } catch (StreamException $e) {
            $msg = "An error occured while writing a function call.";
            throw new StreamAccessException($msg, $this, 0, $e);
        }
    }
public function writeFunctionCall ( $ funcname , PhpArgumentCollection $ arguments = null ) { try { $ this -> getStream ( ) -> write ( $ funcname ) ; $ this -> writeOpeningParenthesis ( ) ; if ( is_null ( $ arguments ) === false ) { $ this -> writeArguments ( $ arguments ) ; } $ this -> writeClosingParenthesis ( ) ; } catch ( StreamException $ e ) { $ msg = "An error occured while writing a function call." ; throw new StreamAccessException ( $ msg , $ this , 0 , $ e ) ; } }
Write a function call in the current stream.

@param string $funcname The name of the function that has to be called.
@param PhpArgumentCollection $arguments A collection of PhpArgument objects representing the arguments to be given to the function call.
@throws StreamAccessException If an error occurs while writing the function call.
Write a function call in the current stream .