/** * {@inheritdoc} */ protected function assignResult($server) { $this->name = $server['name']; $this->domain = $server['domain']; $this->port = $server['port']; $this->country = $server['country']; $this->owner = $server['owner']; $this->online = $server['online']; $this->info = unserialize($server['info']); $this->api_key = ApiKey::get($server['api_key']); $this->updated = TimeDate::fromMysql($server['updated']); $this->status = $server['status']; }