id = (int) $this->id; $this->is_enabled = (int) $this->is_enabled; $this->tool_discover_abilities = (int) $this->tool_discover_abilities; $this->tool_get_ability_info = (int) $this->tool_get_ability_info; $this->tool_execute_ability = (int) $this->tool_execute_ability; $this->override_abilities_permission = (int) $this->override_abilities_permission; } /** * 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_name' => $this->server_name, 'server_slug' => $this->server_slug, 'description' => $this->description, 'is_enabled' => $this->is_enabled, 'registered_from' => $this->registered_from, 'server_route_namespace' => $this->server_route_namespace, 'server_route' => $this->server_route, 'server_version' => $this->server_version, 'tool_discover_abilities' => $this->tool_discover_abilities, 'tool_get_ability_info' => $this->tool_get_ability_info, 'tool_execute_ability' => $this->tool_execute_ability, 'override_abilities_permission' => $this->override_abilities_permission, 'abilities_default_policy' => $this->abilities_default_policy, 'server_type' => $this->server_type, 'created_at' => $this->created_at, ); } }