public function toArray()
    {
        $data = $this->_data;
        $data['message'] = $this->getMessage();
        $data['code'] = $this->getCode();
        $data['key'] = $this->getkey();
        $data = array_reverse($data);

        return $data;
    }
public function toArray()
    {
        $data = $this->_data;
        $data['message'] = $this->getMessage();
        $data['code'] = $this->getCode();
        $data['key'] = $this->getkey();
        $data = array_reverse($data);

        return $data;
    }
public function toArray ( ) { $ data = $ this -> _data ; $ data [ 'message' ] = $ this -> getMessage ( ) ; $ data [ 'code' ] = $ this -> getCode ( ) ; $ data [ 'key' ] = $ this -> getkey ( ) ; $ data = array_reverse ( $ data ) ; return $ data ; }
Return an array represention of the error.

@return array
Return an array represention of the error .