final function GetNewStatement()
    {
        $result = 'new \\' . get_class($this);
        $params = $this->GetConstructParams();
        if (!is_array($params))
        {
            throw new \Exception('PHP writable class ' . get_class($this) . ' did not provide an array as construct params');
        }
        $strParams = array();
        foreach ($params as $param)
        {
            $strParams[] = $this->GetParamString($param);
        }
        return $result . '(' .  join(', ', $strParams) . ')';
    }
final function GetNewStatement()
    {
        $result = 'new \\' . get_class($this);
        $params = $this->GetConstructParams();
        if (!is_array($params))
        {
            throw new \Exception('PHP writable class ' . get_class($this) . ' did not provide an array as construct params');
        }
        $strParams = array();
        foreach ($params as $param)
        {
            $strParams[] = $this->GetParamString($param);
        }
        return $result . '(' .  join(', ', $strParams) . ')';
    }
final function GetNewStatement ( ) { $ result = 'new \\' . get_class ( $ this ) ; $ params = $ this -> GetConstructParams ( ) ; if ( ! is_array ( $ params ) ) { throw new \ Exception ( 'PHP writable class ' . get_class ( $ this ) . ' did not provide an array as construct params' ) ; } $ strParams = array ( ) ; foreach ( $ params as $ param ) { $ strParams [ ] = $ this -> GetParamString ( $ param ) ; } return $ result . '(' . join ( ', ' , $ strParams ) . ')' ; }
Gets the complete new statement as php code
@return string Returns a string like 'new \namespace\className(true)'
Gets the complete new statement as php code