/** * @return array */ public function getArray() { if ($this->isArrayObject()) { return $this->data->getArray(); } return $this->data; }