public function toArray() { $aInfo = parent::toArray(); if (!empty($this->aImage)) { $aInfo['aImage'] = $this->encodeImage($this->aImage); } if (!empty($this->aBackupImage)) { $aInfo['aBackupImage'] = $this->encodeImage($this->aBackupImage); } return $aInfo; }
public function toArray() { return self::array_filter_null(array_merge(array('swagger' => $this->swagger, 'info' => $this->Info->toArray(), 'host' => $this->host, 'basePath' => $this->basePath, 'schemes' => $this->schemes, 'consumes' => $this->consumes, 'produces' => $this->produces, 'paths' => self::array_toArray($this->Paths), 'definitions' => self::array_toArray($this->definitions), 'securityDefinitions' => self::array_toArray($this->securityDefinitions), 'security' => $this->security, 'tags' => self::array_toArray($this->Tags)), parent::toArray())); }