id = (int) $this->id; $this->server_id = (int) $this->server_id; $this->user_id = (int) $this->user_id; } /** * Return this row as an associative array (external consumers depend on this). * * @return array */ public function to_array(): array { return array( 'id' => $this->id, 'server_id' => $this->server_id, 'server_slug' => $this->server_slug, 'user_id' => $this->user_id, 'status' => $this->status, 'failure_code' => $this->failure_code, 'auth_code_hash' => $this->auth_code_hash, 'app_password_uuid' => $this->app_password_uuid, 'redirect_uri' => $this->redirect_uri, 'code_challenge' => $this->code_challenge, 'code_challenge_method' => $this->code_challenge_method, 'scope' => $this->scope, 'approved_at' => $this->approved_at, 'completed_at' => $this->completed_at, 'created_at' => $this->created_at, ); } }