id = (int) $this->id; $this->server_id = (int) $this->server_id; $this->user_id = (int) $this->user_id; $this->approved_by = (int) $this->approved_by; } /** * Return this row as an associative array. * * @return array */ public function to_array(): array { return array( 'id' => $this->id, 'server_id' => $this->server_id, 'connector_slug' => $this->connector_slug, 'user_id' => $this->user_id, 'approved_by' => $this->approved_by, 'approved_at' => $this->approved_at, ); } }