public function toArray()
    {
        $fn = 'toArray' . ucfirst($this->presentation);
        if (!method_exists($this, $fn)) {
            throw new \Exception('There is no method ' . $fn . '.');
        }
        return $this->$fn();
    }
public function toArray()
    {
        $fn = 'toArray' . ucfirst($this->presentation);
        if (!method_exists($this, $fn)) {
            throw new \Exception('There is no method ' . $fn . '.');
        }
        return $this->$fn();
    }
public function toArray ( ) { $ fn = 'toArray' . ucfirst ( $ this -> presentation ) ; if ( ! method_exists ( $ this , $ fn ) ) { throw new \ Exception ( 'There is no method ' . $ fn . '.' ) ; } return $ this -> $ fn ( ) ; }
Build and return the class representation as an array.

@return array
@throws \Exception If the current representation mode cannot be used
Build and return the class representation as an array .