public function toOutput($structure, $assoc = true)
    {
        switch ($structure) {
            case 'string':
                $output = $this->toString();
                break;
            case 'array':
            default:
                $output = $this->toArray($assoc);
                break;
        }
        return $output;
    }
public function toOutput($structure, $assoc = true)
    {
        switch ($structure) {
            case 'string':
                $output = $this->toString();
                break;
            case 'array':
            default:
                $output = $this->toArray($assoc);
                break;
        }
        return $output;
    }
public function toOutput ( $ structure , $ assoc = true ) { switch ( $ structure ) { case 'string' : $ output = $ this -> toString ( ) ; break ; case 'array' : default : $ output = $ this -> toArray ( $ assoc ) ; break ; } return $ output ; }
Get the public representation of the object

@param string $structure
@param bool $assoc
@return array|string
Get the public representation of the object