/** * @return array */ public function toArray() { $data = $this->getParams(); if ($this->_connection) { $data['connection'] = $this->_connection->getParams(); } return $data; }