diff --git a/package-lock.json b/package-lock.json index 1485cb39..da10d012 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.84.0", "license": "MIT", "devDependencies": { - "@prettier/plugin-php": "^0.22.4", + "@prettier/plugin-php": "^0.24.0", "@seamapi/nextlove-sdk-generator": "^1.18.1", "@seamapi/types": "1.423.4", "del": "^7.1.0", @@ -420,13 +420,14 @@ } }, "node_modules/@prettier/plugin-php": { - "version": "0.22.4", - "resolved": "https://registry.npmjs.org/@prettier/plugin-php/-/plugin-php-0.22.4.tgz", - "integrity": "sha512-uZWqfyrwsxScIYkmVcfnoQGFmKVMXTHD5pqYT4l8fxzm5P3XY94hTPbf8X6TFCi2QTZBIot7GS8lfIjQjldc2g==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@prettier/plugin-php/-/plugin-php-0.24.0.tgz", + "integrity": "sha512-x9l65fCE/pgoET6RQowgdgG8Xmzs44z6j6Hhg3coINCyCw9JBGJ5ZzMR2XHAM2jmAdbJAIgqB6cUn4/3W3XLTA==", "dev": true, + "license": "MIT", "dependencies": { - "linguist-languages": "^7.27.0", - "php-parser": "^3.1.5" + "linguist-languages": "^8.0.0", + "php-parser": "^3.2.5" }, "peerDependencies": { "prettier": "^3.0.0" @@ -1103,10 +1104,11 @@ } }, "node_modules/linguist-languages": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/linguist-languages/-/linguist-languages-7.27.0.tgz", - "integrity": "sha512-Wzx/22c5Jsv2ag+uKy+ITanGA5hzvBZngrNGDXLTC7ZjGM6FLCYGgomauTkxNJeP9of353OM0pWqngYA180xgw==", - "dev": true + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/linguist-languages/-/linguist-languages-8.0.0.tgz", + "integrity": "sha512-qfzYmWmM/HOsrO/6YwN2f1DD39p3ObSuq8YgF9JLY9toQO39ZsPBPJoWwTtrqRvhkG+cQUgCOS9h/xRgwfqLxQ==", + "dev": true, + "license": "MIT" }, "node_modules/lodash": { "version": "4.17.21", @@ -1261,10 +1263,11 @@ } }, "node_modules/php-parser": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/php-parser/-/php-parser-3.1.5.tgz", - "integrity": "sha512-jEY2DcbgCm5aclzBdfW86GM6VEIWcSlhTBSHN1qhJguVePlYe28GhwS0yoeLYXpM2K8y6wzLwrbq814n2PHSoQ==", - "dev": true + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/php-parser/-/php-parser-3.2.5.tgz", + "integrity": "sha512-M1ZYlALFFnESbSdmRtTQrBFUHSriHgPhgqtTF/LCbZM4h7swR5PHtUceB2Kzby5CfqcsYwBn7OXTJ0+8Sajwkw==", + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/picomatch": { "version": "2.3.1", diff --git a/package.json b/package.json index 3cb410a4..ef1ccfc5 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "format": "prettier --write --ignore-path .gitignore ." }, "devDependencies": { - "@prettier/plugin-php": "^0.22.4", + "@prettier/plugin-php": "^0.24.0", "@seamapi/nextlove-sdk-generator": "^1.18.1", "@seamapi/types": "1.423.4", "del": "^7.1.0", diff --git a/src/Exceptions/ActionAttemptTimeoutError.php b/src/Exceptions/ActionAttemptTimeoutError.php index 151dc3b4..9ae2a7b7 100644 --- a/src/Exceptions/ActionAttemptTimeoutError.php +++ b/src/Exceptions/ActionAttemptTimeoutError.php @@ -10,7 +10,7 @@ public function __construct(ActionAttempt $actionAttempt, float $timeout) { parent::__construct( "Timed out waiting for action attempt after {$timeout}s", - $actionAttempt + $actionAttempt, ); $this->name = get_class($this); } diff --git a/src/Exceptions/HttpApiError.php b/src/Exceptions/HttpApiError.php index e77d4568..a79a8dd5 100644 --- a/src/Exceptions/HttpApiError.php +++ b/src/Exceptions/HttpApiError.php @@ -12,7 +12,7 @@ class HttpApiError extends \Exception public function __construct( object $error, int $statusCode, - string $requestId + string $requestId, ) { $message = $error->message ?? "Unknown error"; parent::__construct($message); diff --git a/src/Exceptions/HttpInvalidInputError.php b/src/Exceptions/HttpInvalidInputError.php index 0699232c..38cd8d74 100644 --- a/src/Exceptions/HttpInvalidInputError.php +++ b/src/Exceptions/HttpInvalidInputError.php @@ -9,7 +9,7 @@ class HttpInvalidInputError extends HttpApiError public function __construct( object $error, int $statusCode, - string $requestId + string $requestId, ) { parent::__construct($error, $statusCode, $requestId); $this->errorCode = "invalid_input"; diff --git a/src/Objects/AccessCode.php b/src/Objects/AccessCode.php index d389b202..cf4ea76e 100644 --- a/src/Objects/AccessCode.php +++ b/src/Objects/AccessCode.php @@ -15,7 +15,7 @@ public static function from_json(mixed $json): AccessCode|null device_id: $json->device_id, errors: array_map( fn($e) => AccessCodeErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), is_backup_access_code_available: $json->is_backup_access_code_available, is_external_modification_allowed: $json->is_external_modification_allowed, @@ -26,7 +26,7 @@ public static function from_json(mixed $json): AccessCode|null type: $json->type, warnings: array_map( fn($w) => AccessCodeWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), is_backup: $json->is_backup ?? null, is_scheduled_on_device: $json->is_scheduled_on_device ?? null, @@ -38,7 +38,7 @@ public static function from_json(mixed $json): AccessCode|null ends_at: $json->ends_at ?? null, pulled_backup_access_code_id: $json->pulled_backup_access_code_id ?? null, - starts_at: $json->starts_at ?? null + starts_at: $json->starts_at ?? null, ); } @@ -63,6 +63,6 @@ public function __construct( public string|null $name, public string|null $ends_at, public string|null $pulled_backup_access_code_id, - public string|null $starts_at + public string|null $starts_at, ) {} } diff --git a/src/Objects/AccessCodeErrors.php b/src/Objects/AccessCodeErrors.php index b0947509..acf573a8 100644 --- a/src/Objects/AccessCodeErrors.php +++ b/src/Objects/AccessCodeErrors.php @@ -17,7 +17,7 @@ public static function from_json(mixed $json): AccessCodeErrors|null is_bridge_error: $json->is_bridge_error ?? null, is_connected_account_error: $json->is_connected_account_error ?? null, - is_device_error: $json->is_device_error ?? null + is_device_error: $json->is_device_error ?? null, ); } @@ -28,6 +28,6 @@ public function __construct( public bool|null $is_access_code_error, public bool|null $is_bridge_error, public bool|null $is_connected_account_error, - public bool|null $is_device_error + public bool|null $is_device_error, ) {} } diff --git a/src/Objects/AccessCodeWarnings.php b/src/Objects/AccessCodeWarnings.php index b5d52b1e..ae260a3f 100644 --- a/src/Objects/AccessCodeWarnings.php +++ b/src/Objects/AccessCodeWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): AccessCodeWarnings|null return new self( message: $json->message, warning_code: $json->warning_code, - created_at: $json->created_at ?? null + created_at: $json->created_at ?? null, ); } public function __construct( public string $message, public string $warning_code, - public string|null $created_at + public string|null $created_at, ) {} } diff --git a/src/Objects/AccessGrant.php b/src/Objects/AccessGrant.php index 2014e8cb..b4828256 100644 --- a/src/Objects/AccessGrant.php +++ b/src/Objects/AccessGrant.php @@ -17,13 +17,13 @@ public static function from_json(mixed $json): AccessGrant|null location_ids: $json->location_ids, requested_access_methods: array_map( fn($r) => AccessGrantRequestedAccessMethods::from_json($r), - $json->requested_access_methods ?? [] + $json->requested_access_methods ?? [], ), space_ids: $json->space_ids, user_identity_id: $json->user_identity_id, workspace_id: $json->workspace_id, ends_at: $json->ends_at ?? null, - starts_at: $json->starts_at ?? null + starts_at: $json->starts_at ?? null, ); } @@ -38,6 +38,6 @@ public function __construct( public string $user_identity_id, public string $workspace_id, public string|null $ends_at, - public string|null $starts_at + public string|null $starts_at, ) {} } diff --git a/src/Objects/AccessGrantRequestedAccessMethods.php b/src/Objects/AccessGrantRequestedAccessMethods.php index bd19b24a..0194e7cd 100644 --- a/src/Objects/AccessGrantRequestedAccessMethods.php +++ b/src/Objects/AccessGrantRequestedAccessMethods.php @@ -5,7 +5,7 @@ class AccessGrantRequestedAccessMethods { public static function from_json( - mixed $json + mixed $json, ): AccessGrantRequestedAccessMethods|null { if (!$json) { return null; @@ -14,7 +14,7 @@ public static function from_json( created_access_method_ids: $json->created_access_method_ids, created_at: $json->created_at, display_name: $json->display_name, - mode: $json->mode + mode: $json->mode, ); } @@ -22,6 +22,6 @@ public function __construct( public array $created_access_method_ids, public string $created_at, public string $display_name, - public string $mode + public string $mode, ) {} } diff --git a/src/Objects/AccessMethod.php b/src/Objects/AccessMethod.php index 897c4359..3b3a195a 100644 --- a/src/Objects/AccessMethod.php +++ b/src/Objects/AccessMethod.php @@ -17,7 +17,7 @@ public static function from_json(mixed $json): AccessMethod|null workspace_id: $json->workspace_id, instant_key_url: $json->instant_key_url ?? null, is_card_encoding_required: $json->is_card_encoding_required ?? null, - issued_at: $json->issued_at ?? null + issued_at: $json->issued_at ?? null, ); } @@ -29,6 +29,6 @@ public function __construct( public string $workspace_id, public string|null $instant_key_url, public bool|null $is_card_encoding_required, - public string|null $issued_at + public string|null $issued_at, ) {} } diff --git a/src/Objects/AcsAccessGroup.php b/src/Objects/AcsAccessGroup.php index 23457424..ed6be8b1 100644 --- a/src/Objects/AcsAccessGroup.php +++ b/src/Objects/AcsAccessGroup.php @@ -23,9 +23,9 @@ public static function from_json(mixed $json): AcsAccessGroup|null name: $json->name, warnings: array_map( fn($w) => AcsAccessGroupWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -42,6 +42,6 @@ public function __construct( public bool $is_managed, public string $name, public array $warnings, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/AcsAccessGroupWarnings.php b/src/Objects/AcsAccessGroupWarnings.php index b50dd2ba..1d8d77d3 100644 --- a/src/Objects/AcsAccessGroupWarnings.php +++ b/src/Objects/AcsAccessGroupWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): AcsAccessGroupWarnings|null return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/AcsCredential.php b/src/Objects/AcsCredential.php index 231ee84c..08c8786d 100644 --- a/src/Objects/AcsCredential.php +++ b/src/Objects/AcsCredential.php @@ -17,19 +17,19 @@ public static function from_json(mixed $json): AcsCredential|null display_name: $json->display_name, errors: array_map( fn($e) => AcsCredentialErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), is_managed: $json->is_managed, warnings: array_map( fn($w) => AcsCredentialWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, acs_credential_pool_id: $json->acs_credential_pool_id ?? null, acs_user_id: $json->acs_user_id ?? null, assa_abloy_vostio_metadata: isset($json->assa_abloy_vostio_metadata) ? AcsCredentialAssaAbloyVostioMetadata::from_json( - $json->assa_abloy_vostio_metadata + $json->assa_abloy_vostio_metadata, ) : null, ends_at: $json->ends_at ?? null, @@ -44,7 +44,7 @@ public static function from_json(mixed $json): AcsCredential|null starts_at: $json->starts_at ?? null, visionline_metadata: isset($json->visionline_metadata) ? AcsCredentialVisionlineMetadata::from_json( - $json->visionline_metadata + $json->visionline_metadata, ) : null, card_number: $json->card_number ?? null, @@ -53,7 +53,7 @@ public static function from_json(mixed $json): AcsCredential|null null, issued_at: $json->issued_at ?? null, latest_desired_state_synced_with_provider_at: $json->latest_desired_state_synced_with_provider_at ?? - null + null, ); } @@ -83,6 +83,6 @@ public function __construct( public string|null $code, public bool|null $is_latest_desired_state_synced_with_provider, public string|null $issued_at, - public string|null $latest_desired_state_synced_with_provider_at + public string|null $latest_desired_state_synced_with_provider_at, ) {} } diff --git a/src/Objects/AcsCredentialAssaAbloyVostioMetadata.php b/src/Objects/AcsCredentialAssaAbloyVostioMetadata.php index 3a331605..674362f5 100644 --- a/src/Objects/AcsCredentialAssaAbloyVostioMetadata.php +++ b/src/Objects/AcsCredentialAssaAbloyVostioMetadata.php @@ -5,7 +5,7 @@ class AcsCredentialAssaAbloyVostioMetadata { public static function from_json( - mixed $json + mixed $json, ): AcsCredentialAssaAbloyVostioMetadata|null { if (!$json) { return null; @@ -17,7 +17,7 @@ public static function from_json( key_id: $json->key_id ?? null, key_issuing_request_id: $json->key_issuing_request_id ?? null, override_guest_acs_entrance_ids: $json->override_guest_acs_entrance_ids ?? - null + null, ); } @@ -27,6 +27,6 @@ public function __construct( public string|null $endpoint_id, public string|null $key_id, public string|null $key_issuing_request_id, - public array|null $override_guest_acs_entrance_ids + public array|null $override_guest_acs_entrance_ids, ) {} } diff --git a/src/Objects/AcsCredentialErrors.php b/src/Objects/AcsCredentialErrors.php index 2471b987..6efaa605 100644 --- a/src/Objects/AcsCredentialErrors.php +++ b/src/Objects/AcsCredentialErrors.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): AcsCredentialErrors|null return new self( error_code: $json->error_code, message: $json->message, - created_at: $json->created_at ?? null + created_at: $json->created_at ?? null, ); } public function __construct( public string $error_code, public string $message, - public string|null $created_at + public string|null $created_at, ) {} } diff --git a/src/Objects/AcsCredentialPool.php b/src/Objects/AcsCredentialPool.php index 8a7edab6..bcf96757 100644 --- a/src/Objects/AcsCredentialPool.php +++ b/src/Objects/AcsCredentialPool.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): AcsCredentialPool|null display_name: $json->display_name, external_type: $json->external_type, external_type_display_name: $json->external_type_display_name, - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -27,6 +27,6 @@ public function __construct( public string $display_name, public string $external_type, public string $external_type_display_name, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/AcsCredentialProvisioningAutomation.php b/src/Objects/AcsCredentialProvisioningAutomation.php index 7e9cf6fe..b32ff5d5 100644 --- a/src/Objects/AcsCredentialProvisioningAutomation.php +++ b/src/Objects/AcsCredentialProvisioningAutomation.php @@ -5,7 +5,7 @@ class AcsCredentialProvisioningAutomation { public static function from_json( - mixed $json + mixed $json, ): AcsCredentialProvisioningAutomation|null { if (!$json) { return null; @@ -15,7 +15,7 @@ public static function from_json( created_at: $json->created_at, credential_manager_acs_system_id: $json->credential_manager_acs_system_id, user_identity_id: $json->user_identity_id, - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -24,6 +24,6 @@ public function __construct( public string $created_at, public string $credential_manager_acs_system_id, public string $user_identity_id, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/AcsCredentialVisionlineMetadata.php b/src/Objects/AcsCredentialVisionlineMetadata.php index 859adade..5227a937 100644 --- a/src/Objects/AcsCredentialVisionlineMetadata.php +++ b/src/Objects/AcsCredentialVisionlineMetadata.php @@ -5,7 +5,7 @@ class AcsCredentialVisionlineMetadata { public static function from_json( - mixed $json + mixed $json, ): AcsCredentialVisionlineMetadata|null { if (!$json) { return null; @@ -18,7 +18,7 @@ public static function from_json( credential_id: $json->credential_id ?? null, guest_acs_entrance_ids: $json->guest_acs_entrance_ids ?? null, is_valid: $json->is_valid ?? null, - joiner_acs_credential_ids: $json->joiner_acs_credential_ids ?? null + joiner_acs_credential_ids: $json->joiner_acs_credential_ids ?? null, ); } @@ -30,6 +30,6 @@ public function __construct( public string|null $credential_id, public array|null $guest_acs_entrance_ids, public bool|null $is_valid, - public array|null $joiner_acs_credential_ids + public array|null $joiner_acs_credential_ids, ) {} } diff --git a/src/Objects/AcsCredentialWarnings.php b/src/Objects/AcsCredentialWarnings.php index 05a99038..42e6ee6b 100644 --- a/src/Objects/AcsCredentialWarnings.php +++ b/src/Objects/AcsCredentialWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): AcsCredentialWarnings|null return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/AcsEncoder.php b/src/Objects/AcsEncoder.php index d2add3f1..aac8061a 100644 --- a/src/Objects/AcsEncoder.php +++ b/src/Objects/AcsEncoder.php @@ -17,9 +17,9 @@ public static function from_json(mixed $json): AcsEncoder|null display_name: $json->display_name, errors: array_map( fn($e) => AcsEncoderErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -30,6 +30,6 @@ public function __construct( public string $created_at, public string $display_name, public array $errors, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/AcsEncoderErrors.php b/src/Objects/AcsEncoderErrors.php index 1328e836..60f4522c 100644 --- a/src/Objects/AcsEncoderErrors.php +++ b/src/Objects/AcsEncoderErrors.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): AcsEncoderErrors|null return new self( created_at: $json->created_at, error_code: $json->error_code, - message: $json->message + message: $json->message, ); } public function __construct( public string $created_at, public string $error_code, - public string $message + public string $message, ) {} } diff --git a/src/Objects/AcsEntrance.php b/src/Objects/AcsEntrance.php index f0fdbe01..e957fcab 100644 --- a/src/Objects/AcsEntrance.php +++ b/src/Objects/AcsEntrance.php @@ -17,18 +17,18 @@ public static function from_json(mixed $json): AcsEntrance|null display_name: $json->display_name, errors: array_map( fn($e) => AcsEntranceErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), assa_abloy_vostio_metadata: isset($json->assa_abloy_vostio_metadata) ? AcsEntranceAssaAbloyVostioMetadata::from_json( - $json->assa_abloy_vostio_metadata + $json->assa_abloy_vostio_metadata, ) : null, dormakaba_community_metadata: isset( - $json->dormakaba_community_metadata + $json->dormakaba_community_metadata, ) ? AcsEntranceDormakabaCommunityMetadata::from_json( - $json->dormakaba_community_metadata + $json->dormakaba_community_metadata, ) : null, latch_metadata: isset($json->latch_metadata) @@ -36,19 +36,19 @@ public static function from_json(mixed $json): AcsEntrance|null : null, salto_ks_metadata: isset($json->salto_ks_metadata) ? AcsEntranceSaltoKsMetadata::from_json( - $json->salto_ks_metadata + $json->salto_ks_metadata, ) : null, salto_space_metadata: isset($json->salto_space_metadata) ? AcsEntranceSaltoSpaceMetadata::from_json( - $json->salto_space_metadata + $json->salto_space_metadata, ) : null, visionline_metadata: isset($json->visionline_metadata) ? AcsEntranceVisionlineMetadata::from_json( - $json->visionline_metadata + $json->visionline_metadata, ) - : null + : null, ); } @@ -64,6 +64,6 @@ public function __construct( public AcsEntranceLatchMetadata|null $latch_metadata, public AcsEntranceSaltoKsMetadata|null $salto_ks_metadata, public AcsEntranceSaltoSpaceMetadata|null $salto_space_metadata, - public AcsEntranceVisionlineMetadata|null $visionline_metadata + public AcsEntranceVisionlineMetadata|null $visionline_metadata, ) {} } diff --git a/src/Objects/AcsEntranceAssaAbloyVostioMetadata.php b/src/Objects/AcsEntranceAssaAbloyVostioMetadata.php index 0b4d82ac..476d7e7f 100644 --- a/src/Objects/AcsEntranceAssaAbloyVostioMetadata.php +++ b/src/Objects/AcsEntranceAssaAbloyVostioMetadata.php @@ -5,7 +5,7 @@ class AcsEntranceAssaAbloyVostioMetadata { public static function from_json( - mixed $json + mixed $json, ): AcsEntranceAssaAbloyVostioMetadata|null { if (!$json) { return null; @@ -15,7 +15,7 @@ public static function from_json( door_type: $json->door_type, door_number: $json->door_number ?? null, pms_id: $json->pms_id ?? null, - stand_open: $json->stand_open ?? null + stand_open: $json->stand_open ?? null, ); } @@ -24,6 +24,6 @@ public function __construct( public string $door_type, public float|null $door_number, public string|null $pms_id, - public bool|null $stand_open + public bool|null $stand_open, ) {} } diff --git a/src/Objects/AcsEntranceDormakabaCommunityMetadata.php b/src/Objects/AcsEntranceDormakabaCommunityMetadata.php index 210baf89..53ccde66 100644 --- a/src/Objects/AcsEntranceDormakabaCommunityMetadata.php +++ b/src/Objects/AcsEntranceDormakabaCommunityMetadata.php @@ -5,7 +5,7 @@ class AcsEntranceDormakabaCommunityMetadata { public static function from_json( - mixed $json + mixed $json, ): AcsEntranceDormakabaCommunityMetadata|null { if (!$json) { return null; diff --git a/src/Objects/AcsEntranceErrors.php b/src/Objects/AcsEntranceErrors.php index 1874ddb3..3b7d2a22 100644 --- a/src/Objects/AcsEntranceErrors.php +++ b/src/Objects/AcsEntranceErrors.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): AcsEntranceErrors|null return new self( error_code: $json->error_code, message: $json->message, - created_at: $json->created_at ?? null + created_at: $json->created_at ?? null, ); } public function __construct( public string $error_code, public string $message, - public string|null $created_at + public string|null $created_at, ) {} } diff --git a/src/Objects/AcsEntranceLatchMetadata.php b/src/Objects/AcsEntranceLatchMetadata.php index 35aa152d..2132a7d5 100644 --- a/src/Objects/AcsEntranceLatchMetadata.php +++ b/src/Objects/AcsEntranceLatchMetadata.php @@ -13,7 +13,7 @@ public static function from_json(mixed $json): AcsEntranceLatchMetadata|null accessibility_type: $json->accessibility_type, door_name: $json->door_name, door_type: $json->door_type, - is_connected: $json->is_connected + is_connected: $json->is_connected, ); } @@ -21,6 +21,6 @@ public function __construct( public string $accessibility_type, public string $door_name, public string $door_type, - public bool $is_connected + public bool $is_connected, ) {} } diff --git a/src/Objects/AcsEntranceProfiles.php b/src/Objects/AcsEntranceProfiles.php index 4216d1b2..a753e7e2 100644 --- a/src/Objects/AcsEntranceProfiles.php +++ b/src/Objects/AcsEntranceProfiles.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): AcsEntranceProfiles|null } return new self( visionline_door_profile_id: $json->visionline_door_profile_id, - visionline_door_profile_type: $json->visionline_door_profile_type + visionline_door_profile_type: $json->visionline_door_profile_type, ); } public function __construct( public string $visionline_door_profile_id, - public string $visionline_door_profile_type + public string $visionline_door_profile_type, ) {} } diff --git a/src/Objects/AcsEntranceSaltoKsMetadata.php b/src/Objects/AcsEntranceSaltoKsMetadata.php index 9b1600ab..fd777c88 100644 --- a/src/Objects/AcsEntranceSaltoKsMetadata.php +++ b/src/Objects/AcsEntranceSaltoKsMetadata.php @@ -5,7 +5,7 @@ class AcsEntranceSaltoKsMetadata { public static function from_json( - mixed $json + mixed $json, ): AcsEntranceSaltoKsMetadata|null { if (!$json) { return null; @@ -18,7 +18,7 @@ public static function from_json( intrusion_alarm: $json->intrusion_alarm ?? null, left_open_alarm: $json->left_open_alarm ?? null, online: $json->online ?? null, - privacy_mode: $json->privacy_mode ?? null + privacy_mode: $json->privacy_mode ?? null, ); } @@ -30,6 +30,6 @@ public function __construct( public bool|null $intrusion_alarm, public bool|null $left_open_alarm, public bool|null $online, - public bool|null $privacy_mode + public bool|null $privacy_mode, ) {} } diff --git a/src/Objects/AcsEntranceSaltoSpaceMetadata.php b/src/Objects/AcsEntranceSaltoSpaceMetadata.php index ef3f4d2d..2252914b 100644 --- a/src/Objects/AcsEntranceSaltoSpaceMetadata.php +++ b/src/Objects/AcsEntranceSaltoSpaceMetadata.php @@ -5,7 +5,7 @@ class AcsEntranceSaltoSpaceMetadata { public static function from_json( - mixed $json + mixed $json, ): AcsEntranceSaltoSpaceMetadata|null { if (!$json) { return null; @@ -13,13 +13,13 @@ public static function from_json( return new self( door_name: $json->door_name, ext_door_id: $json->ext_door_id, - door_description: $json->door_description ?? null + door_description: $json->door_description ?? null, ); } public function __construct( public string $door_name, public string $ext_door_id, - public string|null $door_description + public string|null $door_description, ) {} } diff --git a/src/Objects/AcsEntranceVisionlineMetadata.php b/src/Objects/AcsEntranceVisionlineMetadata.php index ad52f341..b01bfc36 100644 --- a/src/Objects/AcsEntranceVisionlineMetadata.php +++ b/src/Objects/AcsEntranceVisionlineMetadata.php @@ -5,7 +5,7 @@ class AcsEntranceVisionlineMetadata { public static function from_json( - mixed $json + mixed $json, ): AcsEntranceVisionlineMetadata|null { if (!$json) { return null; @@ -15,14 +15,14 @@ public static function from_json( door_name: $json->door_name, profiles: array_map( fn($p) => AcsEntranceProfiles::from_json($p), - $json->profiles ?? [] - ) + $json->profiles ?? [], + ), ); } public function __construct( public string $door_category, public string $door_name, - public array|null $profiles + public array|null $profiles, ) {} } diff --git a/src/Objects/AcsSystem.php b/src/Objects/AcsSystem.php index 07bd637c..7977c41a 100644 --- a/src/Objects/AcsSystem.php +++ b/src/Objects/AcsSystem.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): AcsSystem|null created_at: $json->created_at, errors: array_map( fn($e) => AcsSystemErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), image_alt_text: $json->image_alt_text, image_url: $json->image_url, @@ -25,7 +25,7 @@ public static function from_json(mixed $json): AcsSystem|null name: $json->name, warnings: array_map( fn($w) => AcsSystemWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, acs_access_group_count: $json->acs_access_group_count ?? null, @@ -37,11 +37,11 @@ public static function from_json(mixed $json): AcsSystem|null system_type_display_name: $json->system_type_display_name ?? null, visionline_metadata: isset($json->visionline_metadata) ? AcsSystemVisionlineMetadata::from_json( - $json->visionline_metadata + $json->visionline_metadata, ) : null, default_credential_manager_acs_system_id: $json->default_credential_manager_acs_system_id ?? - null + null, ); } @@ -65,6 +65,6 @@ public function __construct( public string|null $system_type, public string|null $system_type_display_name, public AcsSystemVisionlineMetadata|null $visionline_metadata, - public string|null $default_credential_manager_acs_system_id + public string|null $default_credential_manager_acs_system_id, ) {} } diff --git a/src/Objects/AcsSystemErrors.php b/src/Objects/AcsSystemErrors.php index ed536883..692d9a0b 100644 --- a/src/Objects/AcsSystemErrors.php +++ b/src/Objects/AcsSystemErrors.php @@ -13,7 +13,7 @@ public static function from_json(mixed $json): AcsSystemErrors|null created_at: $json->created_at, error_code: $json->error_code, message: $json->message, - is_bridge_error: $json->is_bridge_error ?? null + is_bridge_error: $json->is_bridge_error ?? null, ); } @@ -21,6 +21,6 @@ public function __construct( public string $created_at, public string $error_code, public string $message, - public bool|null $is_bridge_error + public bool|null $is_bridge_error, ) {} } diff --git a/src/Objects/AcsSystemVisionlineMetadata.php b/src/Objects/AcsSystemVisionlineMetadata.php index 09eb123b..e5127399 100644 --- a/src/Objects/AcsSystemVisionlineMetadata.php +++ b/src/Objects/AcsSystemVisionlineMetadata.php @@ -5,7 +5,7 @@ class AcsSystemVisionlineMetadata { public static function from_json( - mixed $json + mixed $json, ): AcsSystemVisionlineMetadata|null { if (!$json) { return null; @@ -13,13 +13,13 @@ public static function from_json( return new self( lan_address: $json->lan_address, mobile_access_uuid: $json->mobile_access_uuid, - system_id: $json->system_id + system_id: $json->system_id, ); } public function __construct( public string $lan_address, public string $mobile_access_uuid, - public string $system_id + public string $system_id, ) {} } diff --git a/src/Objects/AcsSystemWarnings.php b/src/Objects/AcsSystemWarnings.php index fdc14b93..003bf2d8 100644 --- a/src/Objects/AcsSystemWarnings.php +++ b/src/Objects/AcsSystemWarnings.php @@ -14,7 +14,7 @@ public static function from_json(mixed $json): AcsSystemWarnings|null message: $json->message, warning_code: $json->warning_code, misconfigured_acs_entrance_ids: $json->misconfigured_acs_entrance_ids ?? - null + null, ); } @@ -22,6 +22,6 @@ public function __construct( public string $created_at, public string $message, public string $warning_code, - public array|null $misconfigured_acs_entrance_ids + public array|null $misconfigured_acs_entrance_ids, ) {} } diff --git a/src/Objects/AcsUser.php b/src/Objects/AcsUser.php index 9e97fe02..4c506ec2 100644 --- a/src/Objects/AcsUser.php +++ b/src/Objects/AcsUser.php @@ -17,12 +17,12 @@ public static function from_json(mixed $json): AcsUser|null display_name: $json->display_name, errors: array_map( fn($e) => AcsUserErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), is_managed: $json->is_managed, warnings: array_map( fn($w) => AcsUserWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, access_schedule: isset($json->access_schedule) @@ -38,7 +38,7 @@ public static function from_json(mixed $json): AcsUser|null is_suspended: $json->is_suspended ?? null, pending_mutations: array_map( fn($p) => AcsUserPendingMutations::from_json($p), - $json->pending_mutations ?? [] + $json->pending_mutations ?? [], ), phone_number: $json->phone_number ?? null, user_identity_id: $json->user_identity_id ?? null, @@ -47,7 +47,7 @@ public static function from_json(mixed $json): AcsUser|null null, user_identity_full_name: $json->user_identity_full_name ?? null, user_identity_phone_number: $json->user_identity_phone_number ?? - null + null, ); } @@ -75,6 +75,6 @@ public function __construct( public string|null $last_successful_sync_at, public string|null $user_identity_email_address, public string|null $user_identity_full_name, - public string|null $user_identity_phone_number + public string|null $user_identity_phone_number, ) {} } diff --git a/src/Objects/AcsUserAccessSchedule.php b/src/Objects/AcsUserAccessSchedule.php index 9351b1d0..f4de74ae 100644 --- a/src/Objects/AcsUserAccessSchedule.php +++ b/src/Objects/AcsUserAccessSchedule.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): AcsUserAccessSchedule|null } return new self( starts_at: $json->starts_at, - ends_at: $json->ends_at ?? null + ends_at: $json->ends_at ?? null, ); } public function __construct( public string $starts_at, - public string|null $ends_at + public string|null $ends_at, ) {} } diff --git a/src/Objects/AcsUserErrors.php b/src/Objects/AcsUserErrors.php index 23d9e730..ed996f29 100644 --- a/src/Objects/AcsUserErrors.php +++ b/src/Objects/AcsUserErrors.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): AcsUserErrors|null return new self( created_at: $json->created_at, error_code: $json->error_code, - message: $json->message + message: $json->message, ); } public function __construct( public string $created_at, public string $error_code, - public string $message + public string $message, ) {} } diff --git a/src/Objects/AcsUserFrom.php b/src/Objects/AcsUserFrom.php index bbb156e0..4ee4fbfa 100644 --- a/src/Objects/AcsUserFrom.php +++ b/src/Objects/AcsUserFrom.php @@ -10,7 +10,7 @@ public static function from_json(mixed $json): AcsUserFrom|null return null; } return new self( - acs_access_group_id: $json->acs_access_group_id ?? null + acs_access_group_id: $json->acs_access_group_id ?? null, ); } diff --git a/src/Objects/AcsUserPendingMutations.php b/src/Objects/AcsUserPendingMutations.php index 2a610295..6043ffdf 100644 --- a/src/Objects/AcsUserPendingMutations.php +++ b/src/Objects/AcsUserPendingMutations.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): AcsUserPendingMutations|null from: isset($json->from) ? AcsUserFrom::from_json($json->from) : null, - to: isset($json->to) ? AcsUserTo::from_json($json->to) : null + to: isset($json->to) ? AcsUserTo::from_json($json->to) : null, ); } @@ -25,6 +25,6 @@ public function __construct( public string $message, public string $mutation_code, public AcsUserFrom|null $from, - public AcsUserTo|null $to + public AcsUserTo|null $to, ) {} } diff --git a/src/Objects/AcsUserTo.php b/src/Objects/AcsUserTo.php index a6f4623a..3aa00f89 100644 --- a/src/Objects/AcsUserTo.php +++ b/src/Objects/AcsUserTo.php @@ -10,7 +10,7 @@ public static function from_json(mixed $json): AcsUserTo|null return null; } return new self( - acs_access_group_id: $json->acs_access_group_id ?? null + acs_access_group_id: $json->acs_access_group_id ?? null, ); } diff --git a/src/Objects/AcsUserWarnings.php b/src/Objects/AcsUserWarnings.php index 8c8b2e56..683619ca 100644 --- a/src/Objects/AcsUserWarnings.php +++ b/src/Objects/AcsUserWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): AcsUserWarnings|null return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/ActionAttempt.php b/src/Objects/ActionAttempt.php index 99aeb8fb..e6c6e23e 100644 --- a/src/Objects/ActionAttempt.php +++ b/src/Objects/ActionAttempt.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): ActionAttempt|null ? ActionAttemptError::from_json($json->error) : null, status: $json->status ?? null, - result: $json->result ?? null + result: $json->result ?? null, ); } @@ -25,6 +25,6 @@ public function __construct( public string|null $action_type, public ActionAttemptError|null $error, public string|null $status, - public mixed $result + public mixed $result, ) {} } diff --git a/src/Objects/BridgeClientSession.php b/src/Objects/BridgeClientSession.php index b47508fd..d4a06b14 100644 --- a/src/Objects/BridgeClientSession.php +++ b/src/Objects/BridgeClientSession.php @@ -18,7 +18,7 @@ public static function from_json(mixed $json): BridgeClientSession|null created_at: $json->created_at, errors: array_map( fn($e) => BridgeClientSessionErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), pairing_code: $json->pairing_code, pairing_code_expires_at: $json->pairing_code_expires_at, @@ -27,7 +27,7 @@ public static function from_json(mixed $json): BridgeClientSession|null telemetry_token: $json->telemetry_token ?? null, telemetry_token_expires_at: $json->telemetry_token_expires_at ?? null, - telemetry_url: $json->telemetry_url ?? null + telemetry_url: $json->telemetry_url ?? null, ); } @@ -45,6 +45,6 @@ public function __construct( public string|null $tailscale_auth_key, public string|null $telemetry_token, public string|null $telemetry_token_expires_at, - public string|null $telemetry_url + public string|null $telemetry_url, ) {} } diff --git a/src/Objects/BridgeClientSessionErrors.php b/src/Objects/BridgeClientSessionErrors.php index dc7ea1fd..9d7e738f 100644 --- a/src/Objects/BridgeClientSessionErrors.php +++ b/src/Objects/BridgeClientSessionErrors.php @@ -5,7 +5,7 @@ class BridgeClientSessionErrors { public static function from_json( - mixed $json + mixed $json, ): BridgeClientSessionErrors|null { if (!$json) { return null; @@ -23,7 +23,7 @@ public static function from_json( is_tailscale_proxy_reachable: $json->is_tailscale_proxy_reachable ?? null, is_tailscale_proxy_socks_server_healthy: $json->is_tailscale_proxy_socks_server_healthy ?? - null + null, ); } @@ -35,6 +35,6 @@ public function __construct( public bool|null $can_tailscale_proxy_reach_tailscale_network, public bool|null $is_bridge_socks_server_healthy, public bool|null $is_tailscale_proxy_reachable, - public bool|null $is_tailscale_proxy_socks_server_healthy + public bool|null $is_tailscale_proxy_socks_server_healthy, ) {} } diff --git a/src/Objects/BridgeConnectedSystems.php b/src/Objects/BridgeConnectedSystems.php index 9f2f36ec..07d70195 100644 --- a/src/Objects/BridgeConnectedSystems.php +++ b/src/Objects/BridgeConnectedSystems.php @@ -17,7 +17,7 @@ public static function from_json(mixed $json): BridgeConnectedSystems|null connected_account_created_at: $json->connected_account_created_at, connected_account_id: $json->connected_account_id, workspace_display_name: $json->workspace_display_name, - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -29,6 +29,6 @@ public function __construct( public string $connected_account_created_at, public string $connected_account_id, public string $workspace_display_name, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/ClientSession.php b/src/Objects/ClientSession.php index 6afe2871..d3e9e54b 100644 --- a/src/Objects/ClientSession.php +++ b/src/Objects/ClientSession.php @@ -21,7 +21,7 @@ public static function from_json(mixed $json): ClientSession|null workspace_id: $json->workspace_id, customer_id: $json->customer_id ?? null, user_identity_id: $json->user_identity_id ?? null, - user_identifier_key: $json->user_identifier_key ?? null + user_identifier_key: $json->user_identifier_key ?? null, ); } @@ -37,6 +37,6 @@ public function __construct( public string $workspace_id, public string|null $customer_id, public string|null $user_identity_id, - public string|null $user_identifier_key + public string|null $user_identifier_key, ) {} } diff --git a/src/Objects/ConnectWebview.php b/src/Objects/ConnectWebview.php index 8241dff0..907e29c5 100644 --- a/src/Objects/ConnectWebview.php +++ b/src/Objects/ConnectWebview.php @@ -30,7 +30,7 @@ public static function from_json(mixed $json): ConnectWebview|null custom_redirect_failure_url: $json->custom_redirect_failure_url ?? null, custom_redirect_url: $json->custom_redirect_url ?? null, - selected_provider: $json->selected_provider ?? null + selected_provider: $json->selected_provider ?? null, ); } @@ -54,6 +54,6 @@ public function __construct( public string|null $connected_account_id, public string|null $custom_redirect_failure_url, public string|null $custom_redirect_url, - public string|null $selected_provider + public string|null $selected_provider, ) {} } diff --git a/src/Objects/ConnectedAccount.php b/src/Objects/ConnectedAccount.php index 2600f305..1bbbf643 100644 --- a/src/Objects/ConnectedAccount.php +++ b/src/Objects/ConnectedAccount.php @@ -15,11 +15,11 @@ public static function from_json(mixed $json): ConnectedAccount|null custom_metadata: $json->custom_metadata, errors: array_map( fn($e) => ConnectedAccountErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), warnings: array_map( fn($w) => ConnectedAccountWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), account_type: $json->account_type ?? null, connected_account_id: $json->connected_account_id ?? null, @@ -27,9 +27,9 @@ public static function from_json(mixed $json): ConnectedAccount|null customer_key: $json->customer_key ?? null, user_identifier: isset($json->user_identifier) ? ConnectedAccountUserIdentifier::from_json( - $json->user_identifier + $json->user_identifier, ) - : null + : null, ); } @@ -43,6 +43,6 @@ public function __construct( public string|null $connected_account_id, public string|null $created_at, public string|null $customer_key, - public ConnectedAccountUserIdentifier|null $user_identifier + public ConnectedAccountUserIdentifier|null $user_identifier, ) {} } diff --git a/src/Objects/ConnectedAccountErrors.php b/src/Objects/ConnectedAccountErrors.php index cad59ebb..b40febb7 100644 --- a/src/Objects/ConnectedAccountErrors.php +++ b/src/Objects/ConnectedAccountErrors.php @@ -18,9 +18,9 @@ public static function from_json(mixed $json): ConnectedAccountErrors|null null, salto_ks_metadata: isset($json->salto_ks_metadata) ? ConnectedAccountSaltoKsMetadata::from_json( - $json->salto_ks_metadata + $json->salto_ks_metadata, ) - : null + : null, ); } @@ -30,6 +30,6 @@ public function __construct( public string $message, public bool|null $is_bridge_error, public bool|null $is_connected_account_error, - public ConnectedAccountSaltoKsMetadata|null $salto_ks_metadata + public ConnectedAccountSaltoKsMetadata|null $salto_ks_metadata, ) {} } diff --git a/src/Objects/ConnectedAccountSaltoKsMetadata.php b/src/Objects/ConnectedAccountSaltoKsMetadata.php index 6db7f79f..3e9b0de2 100644 --- a/src/Objects/ConnectedAccountSaltoKsMetadata.php +++ b/src/Objects/ConnectedAccountSaltoKsMetadata.php @@ -5,7 +5,7 @@ class ConnectedAccountSaltoKsMetadata { public static function from_json( - mixed $json + mixed $json, ): ConnectedAccountSaltoKsMetadata|null { if (!$json) { return null; @@ -13,8 +13,8 @@ public static function from_json( return new self( sites: array_map( fn($s) => ConnectedAccountSites::from_json($s), - $json->sites ?? [] - ) + $json->sites ?? [], + ), ); } diff --git a/src/Objects/ConnectedAccountSites.php b/src/Objects/ConnectedAccountSites.php index 0ba09248..81d1303d 100644 --- a/src/Objects/ConnectedAccountSites.php +++ b/src/Objects/ConnectedAccountSites.php @@ -13,7 +13,7 @@ public static function from_json(mixed $json): ConnectedAccountSites|null site_id: $json->site_id, site_name: $json->site_name, site_user_subscription_limit: $json->site_user_subscription_limit, - subscribed_site_user_count: $json->subscribed_site_user_count + subscribed_site_user_count: $json->subscribed_site_user_count, ); } @@ -21,6 +21,6 @@ public function __construct( public string $site_id, public string $site_name, public mixed $site_user_subscription_limit, - public mixed $subscribed_site_user_count + public mixed $subscribed_site_user_count, ) {} } diff --git a/src/Objects/ConnectedAccountUserIdentifier.php b/src/Objects/ConnectedAccountUserIdentifier.php index 024ada8c..553140a5 100644 --- a/src/Objects/ConnectedAccountUserIdentifier.php +++ b/src/Objects/ConnectedAccountUserIdentifier.php @@ -5,7 +5,7 @@ class ConnectedAccountUserIdentifier { public static function from_json( - mixed $json + mixed $json, ): ConnectedAccountUserIdentifier|null { if (!$json) { return null; @@ -15,7 +15,7 @@ public static function from_json( email: $json->email ?? null, exclusive: $json->exclusive ?? null, phone: $json->phone ?? null, - username: $json->username ?? null + username: $json->username ?? null, ); } @@ -24,6 +24,6 @@ public function __construct( public string|null $email, public bool|null $exclusive, public string|null $phone, - public string|null $username + public string|null $username, ) {} } diff --git a/src/Objects/ConnectedAccountWarnings.php b/src/Objects/ConnectedAccountWarnings.php index dca57bb7..aae2c132 100644 --- a/src/Objects/ConnectedAccountWarnings.php +++ b/src/Objects/ConnectedAccountWarnings.php @@ -15,9 +15,9 @@ public static function from_json(mixed $json): ConnectedAccountWarnings|null warning_code: $json->warning_code, salto_ks_metadata: isset($json->salto_ks_metadata) ? ConnectedAccountSaltoKsMetadata::from_json( - $json->salto_ks_metadata + $json->salto_ks_metadata, ) - : null + : null, ); } @@ -25,6 +25,6 @@ public function __construct( public string $created_at, public string $message, public string $warning_code, - public ConnectedAccountSaltoKsMetadata|null $salto_ks_metadata + public ConnectedAccountSaltoKsMetadata|null $salto_ks_metadata, ) {} } diff --git a/src/Objects/Device.php b/src/Objects/Device.php index d6f45f42..e199d037 100644 --- a/src/Objects/Device.php +++ b/src/Objects/Device.php @@ -19,13 +19,13 @@ public static function from_json(mixed $json): Device|null display_name: $json->display_name, errors: array_map( fn($e) => DeviceErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), is_managed: $json->is_managed, properties: DeviceProperties::from_json($json->properties), warnings: array_map( fn($w) => DeviceWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, can_hvac_cool: $json->can_hvac_cool ?? null, @@ -45,7 +45,7 @@ public static function from_json(mixed $json): Device|null nickname: $json->nickname ?? null, location: isset($json->location) ? DeviceLocation::from_json($json->location) - : null + : null, ); } @@ -74,6 +74,6 @@ public function __construct( public bool|null $can_simulate_removal, public bool|null $can_turn_off_hvac, public string|null $nickname, - public DeviceLocation|null $location + public DeviceLocation|null $location, ) {} } diff --git a/src/Objects/DeviceAccessoryKeypad.php b/src/Objects/DeviceAccessoryKeypad.php index f540cdda..df794458 100644 --- a/src/Objects/DeviceAccessoryKeypad.php +++ b/src/Objects/DeviceAccessoryKeypad.php @@ -13,12 +13,12 @@ public static function from_json(mixed $json): DeviceAccessoryKeypad|null is_connected: $json->is_connected, battery: isset($json->battery) ? DeviceBattery::from_json($json->battery) - : null + : null, ); } public function __construct( public bool $is_connected, - public DeviceBattery|null $battery + public DeviceBattery|null $battery, ) {} } diff --git a/src/Objects/DeviceActiveThermostatSchedule.php b/src/Objects/DeviceActiveThermostatSchedule.php index 55378f31..9b1f9828 100644 --- a/src/Objects/DeviceActiveThermostatSchedule.php +++ b/src/Objects/DeviceActiveThermostatSchedule.php @@ -5,7 +5,7 @@ class DeviceActiveThermostatSchedule { public static function from_json( - mixed $json + mixed $json, ): DeviceActiveThermostatSchedule|null { if (!$json) { return null; @@ -17,7 +17,7 @@ public static function from_json( ends_at: $json->ends_at, errors: array_map( fn($e) => DeviceErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), starts_at: $json->starts_at, thermostat_schedule_id: $json->thermostat_schedule_id, @@ -25,7 +25,7 @@ public static function from_json( is_override_allowed: $json->is_override_allowed ?? null, name: $json->name ?? null, max_override_period_minutes: $json->max_override_period_minutes ?? - null + null, ); } @@ -40,6 +40,6 @@ public function __construct( public string $workspace_id, public bool|null $is_override_allowed, public string|null $name, - public mixed $max_override_period_minutes + public mixed $max_override_period_minutes, ) {} } diff --git a/src/Objects/DeviceAkilesMetadata.php b/src/Objects/DeviceAkilesMetadata.php index be94b3e3..e53f512f 100644 --- a/src/Objects/DeviceAkilesMetadata.php +++ b/src/Objects/DeviceAkilesMetadata.php @@ -13,7 +13,7 @@ public static function from_json(mixed $json): DeviceAkilesMetadata|null gadget_id: $json->gadget_id, gadget_name: $json->gadget_name, product_name: $json->product_name, - _member_group_id: $json->_member_group_id ?? null + _member_group_id: $json->_member_group_id ?? null, ); } @@ -21,6 +21,6 @@ public function __construct( public string $gadget_id, public string $gadget_name, public string $product_name, - public string|null $_member_group_id + public string|null $_member_group_id, ) {} } diff --git a/src/Objects/DeviceAssaAbloyCredentialServiceMetadata.php b/src/Objects/DeviceAssaAbloyCredentialServiceMetadata.php index b2c83936..f31a9629 100644 --- a/src/Objects/DeviceAssaAbloyCredentialServiceMetadata.php +++ b/src/Objects/DeviceAssaAbloyCredentialServiceMetadata.php @@ -5,7 +5,7 @@ class DeviceAssaAbloyCredentialServiceMetadata { public static function from_json( - mixed $json + mixed $json, ): DeviceAssaAbloyCredentialServiceMetadata|null { if (!$json) { return null; @@ -13,14 +13,14 @@ public static function from_json( return new self( endpoints: array_map( fn($e) => DeviceEndpoints::from_json($e), - $json->endpoints ?? [] + $json->endpoints ?? [], ), - has_active_endpoint: $json->has_active_endpoint + has_active_endpoint: $json->has_active_endpoint, ); } public function __construct( public array $endpoints, - public bool $has_active_endpoint + public bool $has_active_endpoint, ) {} } diff --git a/src/Objects/DeviceAssaAbloyVostioMetadata.php b/src/Objects/DeviceAssaAbloyVostioMetadata.php index 691abdc5..01ab2f47 100644 --- a/src/Objects/DeviceAssaAbloyVostioMetadata.php +++ b/src/Objects/DeviceAssaAbloyVostioMetadata.php @@ -5,7 +5,7 @@ class DeviceAssaAbloyVostioMetadata { public static function from_json( - mixed $json + mixed $json, ): DeviceAssaAbloyVostioMetadata|null { if (!$json) { return null; diff --git a/src/Objects/DeviceAugustMetadata.php b/src/Objects/DeviceAugustMetadata.php index a5a46954..e446e012 100644 --- a/src/Objects/DeviceAugustMetadata.php +++ b/src/Objects/DeviceAugustMetadata.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): DeviceAugustMetadata|null lock_name: $json->lock_name, house_id: $json->house_id ?? null, keypad_battery_level: $json->keypad_battery_level ?? null, - model: $json->model ?? null + model: $json->model ?? null, ); } @@ -27,6 +27,6 @@ public function __construct( public string $lock_name, public string|null $house_id, public string|null $keypad_battery_level, - public string|null $model + public string|null $model, ) {} } diff --git a/src/Objects/DeviceAvailableClimatePresets.php b/src/Objects/DeviceAvailableClimatePresets.php index 764b5632..0b217346 100644 --- a/src/Objects/DeviceAvailableClimatePresets.php +++ b/src/Objects/DeviceAvailableClimatePresets.php @@ -5,7 +5,7 @@ class DeviceAvailableClimatePresets { public static function from_json( - mixed $json + mixed $json, ): DeviceAvailableClimatePresets|null { if (!$json) { return null; @@ -25,7 +25,7 @@ public static function from_json( heating_set_point_fahrenheit: $json->heating_set_point_fahrenheit ?? null, hvac_mode_setting: $json->hvac_mode_setting ?? null, - name: $json->name ?? null + name: $json->name ?? null, ); } @@ -42,6 +42,6 @@ public function __construct( public float|null $heating_set_point_celsius, public float|null $heating_set_point_fahrenheit, public string|null $hvac_mode_setting, - public string|null $name + public string|null $name, ) {} } diff --git a/src/Objects/DeviceAvigilonAltaMetadata.php b/src/Objects/DeviceAvigilonAltaMetadata.php index f563f12e..31a84407 100644 --- a/src/Objects/DeviceAvigilonAltaMetadata.php +++ b/src/Objects/DeviceAvigilonAltaMetadata.php @@ -5,7 +5,7 @@ class DeviceAvigilonAltaMetadata { public static function from_json( - mixed $json + mixed $json, ): DeviceAvigilonAltaMetadata|null { if (!$json) { return null; @@ -17,7 +17,7 @@ public static function from_json( site_id: $json->site_id, site_name: $json->site_name, zone_id: $json->zone_id, - zone_name: $json->zone_name + zone_name: $json->zone_name, ); } @@ -28,6 +28,6 @@ public function __construct( public float $site_id, public string $site_name, public float $zone_id, - public string $zone_name + public string $zone_name, ) {} } diff --git a/src/Objects/DeviceCodeConstraints.php b/src/Objects/DeviceCodeConstraints.php index b9c74618..b1ef1c1d 100644 --- a/src/Objects/DeviceCodeConstraints.php +++ b/src/Objects/DeviceCodeConstraints.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceCodeConstraints|null return new self( constraint_type: $json->constraint_type, max_length: $json->max_length ?? null, - min_length: $json->min_length ?? null + min_length: $json->min_length ?? null, ); } public function __construct( public string $constraint_type, public float|null $max_length, - public float|null $min_length + public float|null $min_length, ) {} } diff --git a/src/Objects/DeviceControlbywebMetadata.php b/src/Objects/DeviceControlbywebMetadata.php index 227abec2..5d45476e 100644 --- a/src/Objects/DeviceControlbywebMetadata.php +++ b/src/Objects/DeviceControlbywebMetadata.php @@ -5,7 +5,7 @@ class DeviceControlbywebMetadata { public static function from_json( - mixed $json + mixed $json, ): DeviceControlbywebMetadata|null { if (!$json) { return null; @@ -13,13 +13,13 @@ public static function from_json( return new self( device_id: $json->device_id, device_name: $json->device_name, - relay_name: $json->relay_name ?? null + relay_name: $json->relay_name ?? null, ); } public function __construct( public string $device_id, public string $device_name, - public string|null $relay_name + public string|null $relay_name, ) {} } diff --git a/src/Objects/DeviceCurrentClimateSetting.php b/src/Objects/DeviceCurrentClimateSetting.php index a2f1646d..4ea7eb3e 100644 --- a/src/Objects/DeviceCurrentClimateSetting.php +++ b/src/Objects/DeviceCurrentClimateSetting.php @@ -5,7 +5,7 @@ class DeviceCurrentClimateSetting { public static function from_json( - mixed $json + mixed $json, ): DeviceCurrentClimateSetting|null { if (!$json) { return null; @@ -25,7 +25,7 @@ public static function from_json( null, hvac_mode_setting: $json->hvac_mode_setting ?? null, manual_override_allowed: $json->manual_override_allowed ?? null, - name: $json->name ?? null + name: $json->name ?? null, ); } @@ -42,6 +42,6 @@ public function __construct( public float|null $heating_set_point_fahrenheit, public string|null $hvac_mode_setting, public bool|null $manual_override_allowed, - public string|null $name + public string|null $name, ) {} } diff --git a/src/Objects/DeviceDefaultClimateSetting.php b/src/Objects/DeviceDefaultClimateSetting.php index 40e847ca..d388a74a 100644 --- a/src/Objects/DeviceDefaultClimateSetting.php +++ b/src/Objects/DeviceDefaultClimateSetting.php @@ -5,7 +5,7 @@ class DeviceDefaultClimateSetting { public static function from_json( - mixed $json + mixed $json, ): DeviceDefaultClimateSetting|null { if (!$json) { return null; @@ -25,7 +25,7 @@ public static function from_json( null, hvac_mode_setting: $json->hvac_mode_setting ?? null, manual_override_allowed: $json->manual_override_allowed ?? null, - name: $json->name ?? null + name: $json->name ?? null, ); } @@ -42,6 +42,6 @@ public function __construct( public float|null $heating_set_point_fahrenheit, public string|null $hvac_mode_setting, public bool|null $manual_override_allowed, - public string|null $name + public string|null $name, ) {} } diff --git a/src/Objects/DeviceDormakabaOracodeMetadata.php b/src/Objects/DeviceDormakabaOracodeMetadata.php index 61268a54..e8da935c 100644 --- a/src/Objects/DeviceDormakabaOracodeMetadata.php +++ b/src/Objects/DeviceDormakabaOracodeMetadata.php @@ -5,7 +5,7 @@ class DeviceDormakabaOracodeMetadata { public static function from_json( - mixed $json + mixed $json, ): DeviceDormakabaOracodeMetadata|null { if (!$json) { return null; @@ -19,9 +19,9 @@ public static function from_json( iana_timezone: $json->iana_timezone ?? null, predefined_time_slots: array_map( fn($p) => DevicePredefinedTimeSlots::from_json($p), - $json->predefined_time_slots ?? [] + $json->predefined_time_slots ?? [], ), - site_id: $json->site_id ?? null + site_id: $json->site_id ?? null, ); } @@ -33,6 +33,6 @@ public function __construct( public float|null $door_id, public string|null $iana_timezone, public array|null $predefined_time_slots, - public float|null $site_id + public float|null $site_id, ) {} } diff --git a/src/Objects/DeviceEcobeeMetadata.php b/src/Objects/DeviceEcobeeMetadata.php index 661adff4..45ae7905 100644 --- a/src/Objects/DeviceEcobeeMetadata.php +++ b/src/Objects/DeviceEcobeeMetadata.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): DeviceEcobeeMetadata|null } return new self( device_name: $json->device_name, - ecobee_device_id: $json->ecobee_device_id + ecobee_device_id: $json->ecobee_device_id, ); } public function __construct( public string $device_name, - public string $ecobee_device_id + public string $ecobee_device_id, ) {} } diff --git a/src/Objects/DeviceEndpoints.php b/src/Objects/DeviceEndpoints.php index b041d8e8..49ecea0c 100644 --- a/src/Objects/DeviceEndpoints.php +++ b/src/Objects/DeviceEndpoints.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): DeviceEndpoints|null } return new self( endpoint_id: $json->endpoint_id, - is_active: $json->is_active + is_active: $json->is_active, ); } public function __construct( public string $endpoint_id, - public bool $is_active + public bool $is_active, ) {} } diff --git a/src/Objects/DeviceErrors.php b/src/Objects/DeviceErrors.php index 71f8e9ce..b1440f4a 100644 --- a/src/Objects/DeviceErrors.php +++ b/src/Objects/DeviceErrors.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): DeviceErrors|null is_bridge_error: $json->is_bridge_error ?? null, is_connected_account_error: $json->is_connected_account_error ?? null, - is_device_error: $json->is_device_error ?? null + is_device_error: $json->is_device_error ?? null, ); } @@ -26,6 +26,6 @@ public function __construct( public string $message, public bool|null $is_bridge_error, public bool|null $is_connected_account_error, - public bool|null $is_device_error + public bool|null $is_device_error, ) {} } diff --git a/src/Objects/DeviceFeatures.php b/src/Objects/DeviceFeatures.php index 8038b592..7d5ce8bb 100644 --- a/src/Objects/DeviceFeatures.php +++ b/src/Objects/DeviceFeatures.php @@ -15,7 +15,7 @@ public static function from_json(mixed $json): DeviceFeatures|null passcode: $json->passcode, passcode_management: $json->passcode_management, unlock_via_gateway: $json->unlock_via_gateway, - wifi: $json->wifi + wifi: $json->wifi, ); } @@ -25,6 +25,6 @@ public function __construct( public bool $passcode, public bool $passcode_management, public bool $unlock_via_gateway, - public bool $wifi + public bool $wifi, ) {} } diff --git a/src/Objects/DeviceFourSuitesMetadata.php b/src/Objects/DeviceFourSuitesMetadata.php index 815d1e45..7354c822 100644 --- a/src/Objects/DeviceFourSuitesMetadata.php +++ b/src/Objects/DeviceFourSuitesMetadata.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceFourSuitesMetadata|null return new self( device_id: $json->device_id, device_name: $json->device_name, - reclose_delay_in_seconds: $json->reclose_delay_in_seconds + reclose_delay_in_seconds: $json->reclose_delay_in_seconds, ); } public function __construct( public float $device_id, public string $device_name, - public float $reclose_delay_in_seconds + public float $reclose_delay_in_seconds, ) {} } diff --git a/src/Objects/DeviceGenieMetadata.php b/src/Objects/DeviceGenieMetadata.php index 513eb42f..c21406c3 100644 --- a/src/Objects/DeviceGenieMetadata.php +++ b/src/Objects/DeviceGenieMetadata.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): DeviceGenieMetadata|null } return new self( device_name: $json->device_name, - door_name: $json->door_name + door_name: $json->door_name, ); } public function __construct( public string $device_name, - public string $door_name + public string $door_name, ) {} } diff --git a/src/Objects/DeviceHoneywellResideoMetadata.php b/src/Objects/DeviceHoneywellResideoMetadata.php index dafb8d50..b3415fe0 100644 --- a/src/Objects/DeviceHoneywellResideoMetadata.php +++ b/src/Objects/DeviceHoneywellResideoMetadata.php @@ -5,19 +5,19 @@ class DeviceHoneywellResideoMetadata { public static function from_json( - mixed $json + mixed $json, ): DeviceHoneywellResideoMetadata|null { if (!$json) { return null; } return new self( device_name: $json->device_name, - honeywell_resideo_device_id: $json->honeywell_resideo_device_id + honeywell_resideo_device_id: $json->honeywell_resideo_device_id, ); } public function __construct( public string $device_name, - public string $honeywell_resideo_device_id + public string $honeywell_resideo_device_id, ) {} } diff --git a/src/Objects/DeviceHubitatMetadata.php b/src/Objects/DeviceHubitatMetadata.php index 14d84abd..8db7c8fa 100644 --- a/src/Objects/DeviceHubitatMetadata.php +++ b/src/Objects/DeviceHubitatMetadata.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceHubitatMetadata|null return new self( device_id: $json->device_id, device_label: $json->device_label, - device_name: $json->device_name + device_name: $json->device_name, ); } public function __construct( public string $device_id, public string $device_label, - public string $device_name + public string $device_name, ) {} } diff --git a/src/Objects/DeviceIglooMetadata.php b/src/Objects/DeviceIglooMetadata.php index 04f7ae24..d373b2c8 100644 --- a/src/Objects/DeviceIglooMetadata.php +++ b/src/Objects/DeviceIglooMetadata.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceIglooMetadata|null return new self( bridge_id: $json->bridge_id, device_id: $json->device_id, - model: $json->model ?? null + model: $json->model ?? null, ); } public function __construct( public string $bridge_id, public string $device_id, - public string|null $model + public string|null $model, ) {} } diff --git a/src/Objects/DeviceIgloohomeMetadata.php b/src/Objects/DeviceIgloohomeMetadata.php index 96fea95a..afc858d5 100644 --- a/src/Objects/DeviceIgloohomeMetadata.php +++ b/src/Objects/DeviceIgloohomeMetadata.php @@ -14,7 +14,7 @@ public static function from_json(mixed $json): DeviceIgloohomeMetadata|null device_name: $json->device_name, bridge_id: $json->bridge_id ?? null, bridge_name: $json->bridge_name ?? null, - keypad_id: $json->keypad_id ?? null + keypad_id: $json->keypad_id ?? null, ); } @@ -23,6 +23,6 @@ public function __construct( public string $device_name, public string|null $bridge_id, public string|null $bridge_name, - public string|null $keypad_id + public string|null $keypad_id, ) {} } diff --git a/src/Objects/DeviceKwiksetMetadata.php b/src/Objects/DeviceKwiksetMetadata.php index 1531b63f..69bbed1f 100644 --- a/src/Objects/DeviceKwiksetMetadata.php +++ b/src/Objects/DeviceKwiksetMetadata.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceKwiksetMetadata|null return new self( device_id: $json->device_id, device_name: $json->device_name, - model_number: $json->model_number + model_number: $json->model_number, ); } public function __construct( public string $device_id, public string $device_name, - public string $model_number + public string $model_number, ) {} } diff --git a/src/Objects/DeviceLatestSensorValues.php b/src/Objects/DeviceLatestSensorValues.php index bb02ec3c..80391f60 100644 --- a/src/Objects/DeviceLatestSensorValues.php +++ b/src/Objects/DeviceLatestSensorValues.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): DeviceLatestSensorValues|null } return new self( accelerometer_z: DeviceAccelerometerZ::from_json( - $json->accelerometer_z + $json->accelerometer_z, ), humidity: DeviceHumidity::from_json($json->humidity), pressure: DevicePressure::from_json($json->pressure), sound: DeviceSound::from_json($json->sound), - temperature: DeviceTemperature::from_json($json->temperature) + temperature: DeviceTemperature::from_json($json->temperature), ); } @@ -25,6 +25,6 @@ public function __construct( public DeviceHumidity $humidity, public DevicePressure $pressure, public DeviceSound $sound, - public DeviceTemperature $temperature + public DeviceTemperature $temperature, ) {} } diff --git a/src/Objects/DeviceLocation.php b/src/Objects/DeviceLocation.php index 71d14b2e..7029d2d2 100644 --- a/src/Objects/DeviceLocation.php +++ b/src/Objects/DeviceLocation.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): DeviceLocation|null } return new self( location_name: $json->location_name ?? null, - timezone: $json->timezone ?? null + timezone: $json->timezone ?? null, ); } public function __construct( public string|null $location_name, - public string|null $timezone + public string|null $timezone, ) {} } diff --git a/src/Objects/DeviceLocklyMetadata.php b/src/Objects/DeviceLocklyMetadata.php index 52a6b0df..2cf55537 100644 --- a/src/Objects/DeviceLocklyMetadata.php +++ b/src/Objects/DeviceLocklyMetadata.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceLocklyMetadata|null return new self( device_id: $json->device_id, device_name: $json->device_name, - model: $json->model ?? null + model: $json->model ?? null, ); } public function __construct( public string $device_id, public string $device_name, - public string|null $model + public string|null $model, ) {} } diff --git a/src/Objects/DeviceMinutMetadata.php b/src/Objects/DeviceMinutMetadata.php index 3c902e9e..8f2cedae 100644 --- a/src/Objects/DeviceMinutMetadata.php +++ b/src/Objects/DeviceMinutMetadata.php @@ -13,14 +13,14 @@ public static function from_json(mixed $json): DeviceMinutMetadata|null device_id: $json->device_id, device_name: $json->device_name, latest_sensor_values: DeviceLatestSensorValues::from_json( - $json->latest_sensor_values - ) + $json->latest_sensor_values, + ), ); } public function __construct( public string $device_id, public string $device_name, - public DeviceLatestSensorValues $latest_sensor_values + public DeviceLatestSensorValues $latest_sensor_values, ) {} } diff --git a/src/Objects/DeviceModel.php b/src/Objects/DeviceModel.php index 2af1251d..384a31e4 100644 --- a/src/Objects/DeviceModel.php +++ b/src/Objects/DeviceModel.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceModel|null offline_access_codes_supported: $json->offline_access_codes_supported ?? null, online_access_codes_supported: $json->online_access_codes_supported ?? - null + null, ); } @@ -31,6 +31,6 @@ public function __construct( public bool|null $can_connect_accessory_keypad, public bool|null $has_built_in_keypad, public bool|null $offline_access_codes_supported, - public bool|null $online_access_codes_supported + public bool|null $online_access_codes_supported, ) {} } diff --git a/src/Objects/DeviceNestMetadata.php b/src/Objects/DeviceNestMetadata.php index 2f179a4b..b2d25603 100644 --- a/src/Objects/DeviceNestMetadata.php +++ b/src/Objects/DeviceNestMetadata.php @@ -13,7 +13,7 @@ public static function from_json(mixed $json): DeviceNestMetadata|null device_custom_name: $json->device_custom_name, device_name: $json->device_name, nest_device_id: $json->nest_device_id, - display_name: $json->display_name ?? null + display_name: $json->display_name ?? null, ); } @@ -21,6 +21,6 @@ public function __construct( public string $device_custom_name, public string $device_name, public string $nest_device_id, - public string|null $display_name + public string|null $display_name, ) {} } diff --git a/src/Objects/DeviceNoiseawareMetadata.php b/src/Objects/DeviceNoiseawareMetadata.php index 0c7ee32b..f0ed774a 100644 --- a/src/Objects/DeviceNoiseawareMetadata.php +++ b/src/Objects/DeviceNoiseawareMetadata.php @@ -14,7 +14,7 @@ public static function from_json(mixed $json): DeviceNoiseawareMetadata|null device_model: $json->device_model, device_name: $json->device_name, noise_level_decibel: $json->noise_level_decibel, - noise_level_nrs: $json->noise_level_nrs + noise_level_nrs: $json->noise_level_nrs, ); } @@ -23,6 +23,6 @@ public function __construct( public string $device_model, public string $device_name, public float $noise_level_decibel, - public float $noise_level_nrs + public float $noise_level_nrs, ) {} } diff --git a/src/Objects/DeviceNukiMetadata.php b/src/Objects/DeviceNukiMetadata.php index ccdc8bef..23ac24b7 100644 --- a/src/Objects/DeviceNukiMetadata.php +++ b/src/Objects/DeviceNukiMetadata.php @@ -14,7 +14,7 @@ public static function from_json(mixed $json): DeviceNukiMetadata|null device_name: $json->device_name, keypad_2_paired: $json->keypad_2_paired ?? null, keypad_battery_critical: $json->keypad_battery_critical ?? null, - keypad_paired: $json->keypad_paired ?? null + keypad_paired: $json->keypad_paired ?? null, ); } @@ -23,6 +23,6 @@ public function __construct( public string $device_name, public bool|null $keypad_2_paired, public bool|null $keypad_battery_critical, - public bool|null $keypad_paired + public bool|null $keypad_paired, ) {} } diff --git a/src/Objects/DevicePeriods.php b/src/Objects/DevicePeriods.php index 247179ec..57f253b6 100644 --- a/src/Objects/DevicePeriods.php +++ b/src/Objects/DevicePeriods.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): DevicePeriods|null } return new self( climate_preset_key: $json->climate_preset_key, - starts_at_time: $json->starts_at_time + starts_at_time: $json->starts_at_time, ); } public function __construct( public string $climate_preset_key, - public string $starts_at_time + public string $starts_at_time, ) {} } diff --git a/src/Objects/DevicePredefinedTimeSlots.php b/src/Objects/DevicePredefinedTimeSlots.php index 2c7c8ce5..03d63e44 100644 --- a/src/Objects/DevicePredefinedTimeSlots.php +++ b/src/Objects/DevicePredefinedTimeSlots.php @@ -5,7 +5,7 @@ class DevicePredefinedTimeSlots { public static function from_json( - mixed $json + mixed $json, ): DevicePredefinedTimeSlots|null { if (!$json) { return null; @@ -20,7 +20,7 @@ public static function from_json( is_master: $json->is_master, is_one_shot: $json->is_one_shot, name: $json->name, - prefix: $json->prefix + prefix: $json->prefix, ); } @@ -34,6 +34,6 @@ public function __construct( public bool $is_master, public bool $is_one_shot, public string $name, - public float $prefix + public float $prefix, ) {} } diff --git a/src/Objects/DeviceProperties.php b/src/Objects/DeviceProperties.php index 03ec5a5e..5aceb6a1 100644 --- a/src/Objects/DeviceProperties.php +++ b/src/Objects/DeviceProperties.php @@ -21,22 +21,22 @@ public static function from_json(mixed $json): DeviceProperties|null : null, active_thermostat_schedule: isset($json->active_thermostat_schedule) ? DeviceActiveThermostatSchedule::from_json( - $json->active_thermostat_schedule + $json->active_thermostat_schedule, ) : null, akiles_metadata: isset($json->akiles_metadata) ? DeviceAkilesMetadata::from_json($json->akiles_metadata) : null, assa_abloy_credential_service_metadata: isset( - $json->assa_abloy_credential_service_metadata + $json->assa_abloy_credential_service_metadata, ) ? DeviceAssaAbloyCredentialServiceMetadata::from_json( - $json->assa_abloy_credential_service_metadata + $json->assa_abloy_credential_service_metadata, ) : null, assa_abloy_vostio_metadata: isset($json->assa_abloy_vostio_metadata) ? DeviceAssaAbloyVostioMetadata::from_json( - $json->assa_abloy_vostio_metadata + $json->assa_abloy_vostio_metadata, ) : null, august_metadata: isset($json->august_metadata) @@ -44,7 +44,7 @@ public static function from_json(mixed $json): DeviceProperties|null : null, available_climate_presets: array_map( fn($a) => DeviceAvailableClimatePresets::from_json($a), - $json->available_climate_presets ?? [] + $json->available_climate_presets ?? [], ), available_fan_mode_settings: $json->available_fan_mode_settings ?? null, @@ -52,7 +52,7 @@ public static function from_json(mixed $json): DeviceProperties|null null, avigilon_alta_metadata: isset($json->avigilon_alta_metadata) ? DeviceAvigilonAltaMetadata::from_json( - $json->avigilon_alta_metadata + $json->avigilon_alta_metadata, ) : null, battery: isset($json->battery) @@ -64,29 +64,29 @@ public static function from_json(mixed $json): DeviceProperties|null : null, code_constraints: array_map( fn($c) => DeviceCodeConstraints::from_json($c), - $json->code_constraints ?? [] + $json->code_constraints ?? [], ), controlbyweb_metadata: isset($json->controlbyweb_metadata) ? DeviceControlbywebMetadata::from_json( - $json->controlbyweb_metadata + $json->controlbyweb_metadata, ) : null, current_climate_setting: isset($json->current_climate_setting) ? DeviceCurrentClimateSetting::from_json( - $json->current_climate_setting + $json->current_climate_setting, ) : null, currently_triggering_noise_threshold_ids: $json->currently_triggering_noise_threshold_ids ?? null, default_climate_setting: isset($json->default_climate_setting) ? DeviceDefaultClimateSetting::from_json( - $json->default_climate_setting + $json->default_climate_setting, ) : null, door_open: $json->door_open ?? null, dormakaba_oracode_metadata: isset($json->dormakaba_oracode_metadata) ? DeviceDormakabaOracodeMetadata::from_json( - $json->dormakaba_oracode_metadata + $json->dormakaba_oracode_metadata, ) : null, ecobee_metadata: isset($json->ecobee_metadata) @@ -95,7 +95,7 @@ public static function from_json(mixed $json): DeviceProperties|null fan_mode_setting: $json->fan_mode_setting ?? null, four_suites_metadata: isset($json->four_suites_metadata) ? DeviceFourSuitesMetadata::from_json( - $json->four_suites_metadata + $json->four_suites_metadata, ) : null, genie_metadata: isset($json->genie_metadata) @@ -105,7 +105,7 @@ public static function from_json(mixed $json): DeviceProperties|null has_native_entry_events: $json->has_native_entry_events ?? null, honeywell_resideo_metadata: isset($json->honeywell_resideo_metadata) ? DeviceHoneywellResideoMetadata::from_json( - $json->honeywell_resideo_metadata + $json->honeywell_resideo_metadata, ) : null, hubitat_metadata: isset($json->hubitat_metadata) @@ -166,7 +166,7 @@ public static function from_json(mixed $json): DeviceProperties|null noise_level_decibels: $json->noise_level_decibels ?? null, noiseaware_metadata: isset($json->noiseaware_metadata) ? DeviceNoiseawareMetadata::from_json( - $json->noiseaware_metadata + $json->noiseaware_metadata, ) : null, nuki_metadata: isset($json->nuki_metadata) @@ -184,10 +184,10 @@ public static function from_json(mixed $json): DeviceProperties|null ? DeviceSaltoMetadata::from_json($json->salto_metadata) : null, salto_space_credential_service_metadata: isset( - $json->salto_space_credential_service_metadata + $json->salto_space_credential_service_metadata, ) ? DeviceSaltoSpaceCredentialServiceMetadata::from_json( - $json->salto_space_credential_service_metadata + $json->salto_space_credential_service_metadata, ) : null, schlage_metadata: isset($json->schlage_metadata) @@ -195,7 +195,7 @@ public static function from_json(mixed $json): DeviceProperties|null : null, seam_bridge_metadata: isset($json->seam_bridge_metadata) ? DeviceSeamBridgeMetadata::from_json( - $json->seam_bridge_metadata + $json->seam_bridge_metadata, ) : null, sensi_metadata: isset($json->sensi_metadata) @@ -204,7 +204,7 @@ public static function from_json(mixed $json): DeviceProperties|null serial_number: $json->serial_number ?? null, smartthings_metadata: isset($json->smartthings_metadata) ? DeviceSmartthingsMetadata::from_json( - $json->smartthings_metadata + $json->smartthings_metadata, ) : null, supported_code_lengths: $json->supported_code_lengths ?? null, @@ -223,16 +223,16 @@ public static function from_json(mixed $json): DeviceProperties|null temperature_fahrenheit: $json->temperature_fahrenheit ?? null, temperature_threshold: isset($json->temperature_threshold) ? DeviceTemperatureThreshold::from_json( - $json->temperature_threshold + $json->temperature_threshold, ) : null, thermostat_daily_programs: array_map( fn($t) => DeviceThermostatDailyPrograms::from_json($t), - $json->thermostat_daily_programs ?? [] + $json->thermostat_daily_programs ?? [], ), thermostat_weekly_program: isset($json->thermostat_weekly_program) ? DeviceThermostatWeeklyProgram::from_json( - $json->thermostat_weekly_program + $json->thermostat_weekly_program, ) : null, ttlock_metadata: isset($json->ttlock_metadata) @@ -243,7 +243,7 @@ public static function from_json(mixed $json): DeviceProperties|null : null, visionline_metadata: isset($json->visionline_metadata) ? DeviceVisionlineMetadata::from_json( - $json->visionline_metadata + $json->visionline_metadata, ) : null, wyze_metadata: isset($json->wyze_metadata) @@ -252,7 +252,7 @@ public static function from_json(mixed $json): DeviceProperties|null active_thermostat_schedule_id: $json->active_thermostat_schedule_id ?? null, fallback_climate_preset_key: $json->fallback_climate_preset_key ?? - null + null, ); } @@ -346,6 +346,6 @@ public function __construct( public DeviceVisionlineMetadata|null $visionline_metadata, public DeviceWyzeMetadata|null $wyze_metadata, public string|null $active_thermostat_schedule_id, - public string|null $fallback_climate_preset_key + public string|null $fallback_climate_preset_key, ) {} } diff --git a/src/Objects/DeviceProvider.php b/src/Objects/DeviceProvider.php index 2676893a..0de84059 100644 --- a/src/Objects/DeviceProvider.php +++ b/src/Objects/DeviceProvider.php @@ -27,7 +27,7 @@ public static function from_json(mixed $json): DeviceProvider|null can_simulate_disconnection: $json->can_simulate_disconnection ?? null, can_simulate_removal: $json->can_simulate_removal ?? null, - can_turn_off_hvac: $json->can_turn_off_hvac ?? null + can_turn_off_hvac: $json->can_turn_off_hvac ?? null, ); } @@ -46,6 +46,6 @@ public function __construct( public bool|null $can_simulate_connection, public bool|null $can_simulate_disconnection, public bool|null $can_simulate_removal, - public bool|null $can_turn_off_hvac + public bool|null $can_turn_off_hvac, ) {} } diff --git a/src/Objects/DeviceSaltoKsMetadata.php b/src/Objects/DeviceSaltoKsMetadata.php index 61d618c2..cde8ef70 100644 --- a/src/Objects/DeviceSaltoKsMetadata.php +++ b/src/Objects/DeviceSaltoKsMetadata.php @@ -15,7 +15,7 @@ public static function from_json(mixed $json): DeviceSaltoKsMetadata|null lock_id: $json->lock_id, lock_type: $json->lock_type, locked_state: $json->locked_state, - model: $json->model ?? null + model: $json->model ?? null, ); } @@ -25,6 +25,6 @@ public function __construct( public string $lock_id, public string $lock_type, public string $locked_state, - public string|null $model + public string|null $model, ) {} } diff --git a/src/Objects/DeviceSaltoMetadata.php b/src/Objects/DeviceSaltoMetadata.php index d15e9126..8e4986da 100644 --- a/src/Objects/DeviceSaltoMetadata.php +++ b/src/Objects/DeviceSaltoMetadata.php @@ -15,7 +15,7 @@ public static function from_json(mixed $json): DeviceSaltoMetadata|null lock_id: $json->lock_id, lock_type: $json->lock_type, locked_state: $json->locked_state, - model: $json->model ?? null + model: $json->model ?? null, ); } @@ -25,6 +25,6 @@ public function __construct( public string $lock_id, public string $lock_type, public string $locked_state, - public string|null $model + public string|null $model, ) {} } diff --git a/src/Objects/DeviceSaltoSpaceCredentialServiceMetadata.php b/src/Objects/DeviceSaltoSpaceCredentialServiceMetadata.php index aa855c3b..5be37e84 100644 --- a/src/Objects/DeviceSaltoSpaceCredentialServiceMetadata.php +++ b/src/Objects/DeviceSaltoSpaceCredentialServiceMetadata.php @@ -5,7 +5,7 @@ class DeviceSaltoSpaceCredentialServiceMetadata { public static function from_json( - mixed $json + mixed $json, ): DeviceSaltoSpaceCredentialServiceMetadata|null { if (!$json) { return null; diff --git a/src/Objects/DeviceSchlageMetadata.php b/src/Objects/DeviceSchlageMetadata.php index 0a0a027b..5c681570 100644 --- a/src/Objects/DeviceSchlageMetadata.php +++ b/src/Objects/DeviceSchlageMetadata.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceSchlageMetadata|null return new self( device_id: $json->device_id, device_name: $json->device_name, - model: $json->model ?? null + model: $json->model ?? null, ); } public function __construct( public string $device_id, public string $device_name, - public string|null $model + public string|null $model, ) {} } diff --git a/src/Objects/DeviceSeamBridgeMetadata.php b/src/Objects/DeviceSeamBridgeMetadata.php index 781d1429..ce2ca9af 100644 --- a/src/Objects/DeviceSeamBridgeMetadata.php +++ b/src/Objects/DeviceSeamBridgeMetadata.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceSeamBridgeMetadata|null return new self( device_num: $json->device_num, name: $json->name, - unlock_method: $json->unlock_method ?? null + unlock_method: $json->unlock_method ?? null, ); } public function __construct( public float $device_num, public string $name, - public string|null $unlock_method + public string|null $unlock_method, ) {} } diff --git a/src/Objects/DeviceSensiMetadata.php b/src/Objects/DeviceSensiMetadata.php index 4967935b..cd56559f 100644 --- a/src/Objects/DeviceSensiMetadata.php +++ b/src/Objects/DeviceSensiMetadata.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceSensiMetadata|null return new self( device_id: $json->device_id, device_name: $json->device_name, - product_type: $json->product_type + product_type: $json->product_type, ); } public function __construct( public string $device_id, public string $device_name, - public string $product_type + public string $product_type, ) {} } diff --git a/src/Objects/DeviceSmartthingsMetadata.php b/src/Objects/DeviceSmartthingsMetadata.php index 80926121..c418eea9 100644 --- a/src/Objects/DeviceSmartthingsMetadata.php +++ b/src/Objects/DeviceSmartthingsMetadata.php @@ -5,7 +5,7 @@ class DeviceSmartthingsMetadata { public static function from_json( - mixed $json + mixed $json, ): DeviceSmartthingsMetadata|null { if (!$json) { return null; @@ -14,7 +14,7 @@ public static function from_json( device_id: $json->device_id, device_name: $json->device_name, location_id: $json->location_id ?? null, - model: $json->model ?? null + model: $json->model ?? null, ); } @@ -22,6 +22,6 @@ public function __construct( public string $device_id, public string $device_name, public string|null $location_id, - public string|null $model + public string|null $model, ) {} } diff --git a/src/Objects/DeviceTadoMetadata.php b/src/Objects/DeviceTadoMetadata.php index 7525ffb7..b01b26c2 100644 --- a/src/Objects/DeviceTadoMetadata.php +++ b/src/Objects/DeviceTadoMetadata.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): DeviceTadoMetadata|null } return new self( device_type: $json->device_type, - serial_no: $json->serial_no + serial_no: $json->serial_no, ); } public function __construct( public string $device_type, - public string $serial_no + public string $serial_no, ) {} } diff --git a/src/Objects/DeviceTedeeMetadata.php b/src/Objects/DeviceTedeeMetadata.php index f71af3f0..1ee24009 100644 --- a/src/Objects/DeviceTedeeMetadata.php +++ b/src/Objects/DeviceTedeeMetadata.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): DeviceTedeeMetadata|null device_model: $json->device_model, device_name: $json->device_name, serial_number: $json->serial_number, - keypad_id: $json->keypad_id ?? null + keypad_id: $json->keypad_id ?? null, ); } @@ -27,6 +27,6 @@ public function __construct( public string $device_model, public string $device_name, public string $serial_number, - public float|null $keypad_id + public float|null $keypad_id, ) {} } diff --git a/src/Objects/DeviceTemperatureThreshold.php b/src/Objects/DeviceTemperatureThreshold.php index d414c355..33f5da22 100644 --- a/src/Objects/DeviceTemperatureThreshold.php +++ b/src/Objects/DeviceTemperatureThreshold.php @@ -5,7 +5,7 @@ class DeviceTemperatureThreshold { public static function from_json( - mixed $json + mixed $json, ): DeviceTemperatureThreshold|null { if (!$json) { return null; @@ -14,7 +14,7 @@ public static function from_json( lower_limit_celsius: $json->lower_limit_celsius ?? null, lower_limit_fahrenheit: $json->lower_limit_fahrenheit ?? null, upper_limit_celsius: $json->upper_limit_celsius ?? null, - upper_limit_fahrenheit: $json->upper_limit_fahrenheit ?? null + upper_limit_fahrenheit: $json->upper_limit_fahrenheit ?? null, ); } @@ -22,6 +22,6 @@ public function __construct( public float|null $lower_limit_celsius, public float|null $lower_limit_fahrenheit, public float|null $upper_limit_celsius, - public float|null $upper_limit_fahrenheit + public float|null $upper_limit_fahrenheit, ) {} } diff --git a/src/Objects/DeviceThermostatDailyPrograms.php b/src/Objects/DeviceThermostatDailyPrograms.php index a4f0cce8..e24fba6c 100644 --- a/src/Objects/DeviceThermostatDailyPrograms.php +++ b/src/Objects/DeviceThermostatDailyPrograms.php @@ -5,7 +5,7 @@ class DeviceThermostatDailyPrograms { public static function from_json( - mixed $json + mixed $json, ): DeviceThermostatDailyPrograms|null { if (!$json) { return null; @@ -15,11 +15,11 @@ public static function from_json( device_id: $json->device_id, periods: array_map( fn($p) => DevicePeriods::from_json($p), - $json->periods ?? [] + $json->periods ?? [], ), thermostat_daily_program_id: $json->thermostat_daily_program_id, workspace_id: $json->workspace_id, - name: $json->name ?? null + name: $json->name ?? null, ); } @@ -29,6 +29,6 @@ public function __construct( public array $periods, public string $thermostat_daily_program_id, public string $workspace_id, - public string|null $name + public string|null $name, ) {} } diff --git a/src/Objects/DeviceThermostatWeeklyProgram.php b/src/Objects/DeviceThermostatWeeklyProgram.php index 0ccfd485..eb1d9071 100644 --- a/src/Objects/DeviceThermostatWeeklyProgram.php +++ b/src/Objects/DeviceThermostatWeeklyProgram.php @@ -5,7 +5,7 @@ class DeviceThermostatWeeklyProgram { public static function from_json( - mixed $json + mixed $json, ): DeviceThermostatWeeklyProgram|null { if (!$json) { return null; @@ -18,7 +18,7 @@ public static function from_json( sunday_program_id: $json->sunday_program_id ?? null, thursday_program_id: $json->thursday_program_id ?? null, tuesday_program_id: $json->tuesday_program_id ?? null, - wednesday_program_id: $json->wednesday_program_id ?? null + wednesday_program_id: $json->wednesday_program_id ?? null, ); } @@ -30,6 +30,6 @@ public function __construct( public string|null $sunday_program_id, public string|null $thursday_program_id, public string|null $tuesday_program_id, - public string|null $wednesday_program_id + public string|null $wednesday_program_id, ) {} } diff --git a/src/Objects/DeviceTtlockMetadata.php b/src/Objects/DeviceTtlockMetadata.php index 14fd9c0f..458d09c5 100644 --- a/src/Objects/DeviceTtlockMetadata.php +++ b/src/Objects/DeviceTtlockMetadata.php @@ -17,8 +17,8 @@ public static function from_json(mixed $json): DeviceTtlockMetadata|null has_gateway: $json->has_gateway ?? null, wireless_keypads: array_map( fn($w) => DeviceWirelessKeypads::from_json($w), - $json->wireless_keypads ?? [] - ) + $json->wireless_keypads ?? [], + ), ); } @@ -28,6 +28,6 @@ public function __construct( public string $lock_alias, public float $lock_id, public bool|null $has_gateway, - public array|null $wireless_keypads + public array|null $wireless_keypads, ) {} } diff --git a/src/Objects/DeviceTwoNMetadata.php b/src/Objects/DeviceTwoNMetadata.php index 857c3eb7..81e49f2a 100644 --- a/src/Objects/DeviceTwoNMetadata.php +++ b/src/Objects/DeviceTwoNMetadata.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): DeviceTwoNMetadata|null } return new self( device_id: $json->device_id, - device_name: $json->device_name + device_name: $json->device_name, ); } public function __construct( public float $device_id, - public string $device_name + public string $device_name, ) {} } diff --git a/src/Objects/DeviceWarnings.php b/src/Objects/DeviceWarnings.php index 90f0f0b4..3eb7a979 100644 --- a/src/Objects/DeviceWarnings.php +++ b/src/Objects/DeviceWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): DeviceWarnings|null return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/DeviceWirelessKeypads.php b/src/Objects/DeviceWirelessKeypads.php index a5f761a4..a69908d3 100644 --- a/src/Objects/DeviceWirelessKeypads.php +++ b/src/Objects/DeviceWirelessKeypads.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): DeviceWirelessKeypads|null } return new self( wireless_keypad_id: $json->wireless_keypad_id, - wireless_keypad_name: $json->wireless_keypad_name + wireless_keypad_name: $json->wireless_keypad_name, ); } public function __construct( public float $wireless_keypad_id, - public string $wireless_keypad_name + public string $wireless_keypad_name, ) {} } diff --git a/src/Objects/DeviceWyzeMetadata.php b/src/Objects/DeviceWyzeMetadata.php index c4bc4c74..2a655852 100644 --- a/src/Objects/DeviceWyzeMetadata.php +++ b/src/Objects/DeviceWyzeMetadata.php @@ -17,7 +17,7 @@ public static function from_json(mixed $json): DeviceWyzeMetadata|null product_name: $json->product_name, product_type: $json->product_type, keypad_uuid: $json->keypad_uuid ?? null, - locker_status_hardlock: $json->locker_status_hardlock ?? null + locker_status_hardlock: $json->locker_status_hardlock ?? null, ); } @@ -29,6 +29,6 @@ public function __construct( public string $product_name, public string $product_type, public string|null $keypad_uuid, - public float|null $locker_status_hardlock + public float|null $locker_status_hardlock, ) {} } diff --git a/src/Objects/EnrollmentAutomation.php b/src/Objects/EnrollmentAutomation.php index a4d0985a..2a5a1cb3 100644 --- a/src/Objects/EnrollmentAutomation.php +++ b/src/Objects/EnrollmentAutomation.php @@ -14,7 +14,7 @@ public static function from_json(mixed $json): EnrollmentAutomation|null credential_manager_acs_system_id: $json->credential_manager_acs_system_id, enrollment_automation_id: $json->enrollment_automation_id, user_identity_id: $json->user_identity_id, - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -23,6 +23,6 @@ public function __construct( public string $credential_manager_acs_system_id, public string $enrollment_automation_id, public string $user_identity_id, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/Event.php b/src/Objects/Event.php index 9d9110ae..9b922b4e 100644 --- a/src/Objects/Event.php +++ b/src/Objects/Event.php @@ -66,7 +66,7 @@ public static function from_json(mixed $json): Event|null lower_limit_fahrenheit: $json->lower_limit_fahrenheit ?? null, thermostat_schedule_id: $json->thermostat_schedule_id ?? null, upper_limit_celsius: $json->upper_limit_celsius ?? null, - upper_limit_fahrenheit: $json->upper_limit_fahrenheit ?? null + upper_limit_fahrenheit: $json->upper_limit_fahrenheit ?? null, ); } @@ -122,6 +122,6 @@ public function __construct( public float|null $lower_limit_fahrenheit, public string|null $thermostat_schedule_id, public float|null $upper_limit_celsius, - public float|null $upper_limit_fahrenheit + public float|null $upper_limit_fahrenheit, ) {} } diff --git a/src/Objects/InstantKey.php b/src/Objects/InstantKey.php index f7d2b300..c0d82de4 100644 --- a/src/Objects/InstantKey.php +++ b/src/Objects/InstantKey.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): InstantKey|null instant_key_id: $json->instant_key_id, instant_key_url: $json->instant_key_url, user_identity_id: $json->user_identity_id, - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -27,6 +27,6 @@ public function __construct( public string $instant_key_id, public string $instant_key_url, public string $user_identity_id, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/Location.php b/src/Objects/Location.php index 917e65fc..02bca8e9 100644 --- a/src/Objects/Location.php +++ b/src/Objects/Location.php @@ -18,7 +18,7 @@ public static function from_json(mixed $json): Location|null geolocation: isset($json->geolocation) ? LocationGeolocation::from_json($json->geolocation) : null, - time_zone: $json->time_zone ?? null + time_zone: $json->time_zone ?? null, ); } @@ -29,6 +29,6 @@ public function __construct( public string $name, public string $workspace_id, public LocationGeolocation|null $geolocation, - public string|null $time_zone + public string|null $time_zone, ) {} } diff --git a/src/Objects/LocationGeolocation.php b/src/Objects/LocationGeolocation.php index 9c74f247..13dda221 100644 --- a/src/Objects/LocationGeolocation.php +++ b/src/Objects/LocationGeolocation.php @@ -14,6 +14,6 @@ public static function from_json(mixed $json): LocationGeolocation|null public function __construct( public float $latitude, - public float $longitude + public float $longitude, ) {} } diff --git a/src/Objects/MagicLink.php b/src/Objects/MagicLink.php index 7a2b3f38..4f4317ec 100644 --- a/src/Objects/MagicLink.php +++ b/src/Objects/MagicLink.php @@ -15,7 +15,7 @@ public static function from_json(mixed $json): MagicLink|null customer_key: $json->customer_key, expires_at: $json->expires_at, url: $json->url, - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -25,6 +25,6 @@ public function __construct( public string $customer_key, public string $expires_at, public string $url, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/NoiseThreshold.php b/src/Objects/NoiseThreshold.php index c59a1d20..b27176ed 100644 --- a/src/Objects/NoiseThreshold.php +++ b/src/Objects/NoiseThreshold.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): NoiseThreshold|null noise_threshold_decibels: $json->noise_threshold_decibels, noise_threshold_id: $json->noise_threshold_id, starts_daily_at: $json->starts_daily_at, - noise_threshold_nrs: $json->noise_threshold_nrs ?? null + noise_threshold_nrs: $json->noise_threshold_nrs ?? null, ); } @@ -27,6 +27,6 @@ public function __construct( public float $noise_threshold_decibels, public string $noise_threshold_id, public string $starts_daily_at, - public float|null $noise_threshold_nrs + public float|null $noise_threshold_nrs, ) {} } diff --git a/src/Objects/Pagination.php b/src/Objects/Pagination.php index b394a30c..580020ad 100644 --- a/src/Objects/Pagination.php +++ b/src/Objects/Pagination.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): Pagination|null return new self( has_next_page: $json->has_next_page, next_page_cursor: $json->next_page_cursor ?? null, - next_page_url: $json->next_page_url ?? null + next_page_url: $json->next_page_url ?? null, ); } public function __construct( public bool $has_next_page, public string|null $next_page_cursor, - public string|null $next_page_url + public string|null $next_page_url, ) {} } diff --git a/src/Objects/Phone.php b/src/Objects/Phone.php index 469aad5e..0f6e050e 100644 --- a/src/Objects/Phone.php +++ b/src/Objects/Phone.php @@ -17,15 +17,15 @@ public static function from_json(mixed $json): Phone|null display_name: $json->display_name, errors: array_map( fn($e) => PhoneErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), properties: PhoneProperties::from_json($json->properties), warnings: array_map( fn($w) => PhoneWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, - nickname: $json->nickname ?? null + nickname: $json->nickname ?? null, ); } @@ -39,6 +39,6 @@ public function __construct( public PhoneProperties $properties, public array $warnings, public string $workspace_id, - public string|null $nickname + public string|null $nickname, ) {} } diff --git a/src/Objects/PhoneAssaAbloyCredentialServiceMetadata.php b/src/Objects/PhoneAssaAbloyCredentialServiceMetadata.php index a066e1c6..4421e368 100644 --- a/src/Objects/PhoneAssaAbloyCredentialServiceMetadata.php +++ b/src/Objects/PhoneAssaAbloyCredentialServiceMetadata.php @@ -5,7 +5,7 @@ class PhoneAssaAbloyCredentialServiceMetadata { public static function from_json( - mixed $json + mixed $json, ): PhoneAssaAbloyCredentialServiceMetadata|null { if (!$json) { return null; @@ -13,14 +13,14 @@ public static function from_json( return new self( endpoints: array_map( fn($e) => PhoneEndpoints::from_json($e), - $json->endpoints ?? [] + $json->endpoints ?? [], ), - has_active_endpoint: $json->has_active_endpoint + has_active_endpoint: $json->has_active_endpoint, ); } public function __construct( public array $endpoints, - public bool $has_active_endpoint + public bool $has_active_endpoint, ) {} } diff --git a/src/Objects/PhoneEndpoints.php b/src/Objects/PhoneEndpoints.php index ff004c75..5054fcc6 100644 --- a/src/Objects/PhoneEndpoints.php +++ b/src/Objects/PhoneEndpoints.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): PhoneEndpoints|null } return new self( endpoint_id: $json->endpoint_id, - is_active: $json->is_active + is_active: $json->is_active, ); } public function __construct( public string $endpoint_id, - public bool $is_active + public bool $is_active, ) {} } diff --git a/src/Objects/PhoneErrors.php b/src/Objects/PhoneErrors.php index 14b3b6dc..7c9ea9b2 100644 --- a/src/Objects/PhoneErrors.php +++ b/src/Objects/PhoneErrors.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): PhoneErrors|null return new self( error_code: $json->error_code, message: $json->message, - created_at: $json->created_at ?? null + created_at: $json->created_at ?? null, ); } public function __construct( public string $error_code, public string $message, - public string|null $created_at + public string|null $created_at, ) {} } diff --git a/src/Objects/PhoneProperties.php b/src/Objects/PhoneProperties.php index 13a76a1c..19d8f409 100644 --- a/src/Objects/PhoneProperties.php +++ b/src/Objects/PhoneProperties.php @@ -11,24 +11,24 @@ public static function from_json(mixed $json): PhoneProperties|null } return new self( assa_abloy_credential_service_metadata: isset( - $json->assa_abloy_credential_service_metadata + $json->assa_abloy_credential_service_metadata, ) ? PhoneAssaAbloyCredentialServiceMetadata::from_json( - $json->assa_abloy_credential_service_metadata + $json->assa_abloy_credential_service_metadata, ) : null, salto_space_credential_service_metadata: isset( - $json->salto_space_credential_service_metadata + $json->salto_space_credential_service_metadata, ) ? PhoneSaltoSpaceCredentialServiceMetadata::from_json( - $json->salto_space_credential_service_metadata + $json->salto_space_credential_service_metadata, ) - : null + : null, ); } public function __construct( public PhoneAssaAbloyCredentialServiceMetadata|null $assa_abloy_credential_service_metadata, - public PhoneSaltoSpaceCredentialServiceMetadata|null $salto_space_credential_service_metadata + public PhoneSaltoSpaceCredentialServiceMetadata|null $salto_space_credential_service_metadata, ) {} } diff --git a/src/Objects/PhoneRegistration.php b/src/Objects/PhoneRegistration.php index 5f130d90..7774f2f6 100644 --- a/src/Objects/PhoneRegistration.php +++ b/src/Objects/PhoneRegistration.php @@ -13,7 +13,7 @@ public static function from_json(mixed $json): PhoneRegistration|null is_being_activated: $json->is_being_activated, phone_registration_id: $json->phone_registration_id, provider_state: $json->provider_state ?? null, - provider_name: $json->provider_name ?? null + provider_name: $json->provider_name ?? null, ); } @@ -21,6 +21,6 @@ public function __construct( public bool $is_being_activated, public string $phone_registration_id, public mixed $provider_state, - public string|null $provider_name + public string|null $provider_name, ) {} } diff --git a/src/Objects/PhoneSaltoSpaceCredentialServiceMetadata.php b/src/Objects/PhoneSaltoSpaceCredentialServiceMetadata.php index f1b542d5..1f24afc3 100644 --- a/src/Objects/PhoneSaltoSpaceCredentialServiceMetadata.php +++ b/src/Objects/PhoneSaltoSpaceCredentialServiceMetadata.php @@ -5,7 +5,7 @@ class PhoneSaltoSpaceCredentialServiceMetadata { public static function from_json( - mixed $json + mixed $json, ): PhoneSaltoSpaceCredentialServiceMetadata|null { if (!$json) { return null; diff --git a/src/Objects/PhoneSession.php b/src/Objects/PhoneSession.php index b804b509..ea114716 100644 --- a/src/Objects/PhoneSession.php +++ b/src/Objects/PhoneSession.php @@ -12,8 +12,8 @@ public static function from_json(mixed $json): PhoneSession|null return new self( provider_sessions: array_map( fn($p) => PhoneSessionProviderSessions::from_json($p), - $json->provider_sessions ?? [] - ) + $json->provider_sessions ?? [], + ), ); } diff --git a/src/Objects/PhoneSessionAcsCredentials.php b/src/Objects/PhoneSessionAcsCredentials.php index 4dc1ae60..393dc644 100644 --- a/src/Objects/PhoneSessionAcsCredentials.php +++ b/src/Objects/PhoneSessionAcsCredentials.php @@ -5,7 +5,7 @@ class PhoneSessionAcsCredentials { public static function from_json( - mixed $json + mixed $json, ): PhoneSessionAcsCredentials|null { if (!$json) { return null; @@ -14,26 +14,26 @@ public static function from_json( access_method: $json->access_method, acs_entrances: array_map( fn($a) => PhoneSessionAcsEntrances::from_json($a), - $json->acs_entrances ?? [] + $json->acs_entrances ?? [], ), acs_system_id: $json->acs_system_id, created_at: $json->created_at, display_name: $json->display_name, errors: array_map( fn($e) => PhoneSessionErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), is_managed: $json->is_managed, warnings: array_map( fn($w) => PhoneSessionWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, acs_credential_pool_id: $json->acs_credential_pool_id ?? null, acs_user_id: $json->acs_user_id ?? null, assa_abloy_vostio_metadata: isset($json->assa_abloy_vostio_metadata) ? PhoneSessionAssaAbloyVostioMetadata::from_json( - $json->assa_abloy_vostio_metadata + $json->assa_abloy_vostio_metadata, ) : null, ends_at: $json->ends_at ?? null, @@ -48,7 +48,7 @@ public static function from_json( starts_at: $json->starts_at ?? null, visionline_metadata: isset($json->visionline_metadata) ? PhoneSessionVisionlineMetadata::from_json( - $json->visionline_metadata + $json->visionline_metadata, ) : null, acs_credential_id: $json->acs_credential_id ?? null, @@ -58,7 +58,7 @@ public static function from_json( null, issued_at: $json->issued_at ?? null, latest_desired_state_synced_with_provider_at: $json->latest_desired_state_synced_with_provider_at ?? - null + null, ); } @@ -89,6 +89,6 @@ public function __construct( public string|null $code, public bool|null $is_latest_desired_state_synced_with_provider, public string|null $issued_at, - public string|null $latest_desired_state_synced_with_provider_at + public string|null $latest_desired_state_synced_with_provider_at, ) {} } diff --git a/src/Objects/PhoneSessionAcsEntrances.php b/src/Objects/PhoneSessionAcsEntrances.php index 0aae2470..59d93ee7 100644 --- a/src/Objects/PhoneSessionAcsEntrances.php +++ b/src/Objects/PhoneSessionAcsEntrances.php @@ -17,18 +17,18 @@ public static function from_json(mixed $json): PhoneSessionAcsEntrances|null display_name: $json->display_name, errors: array_map( fn($e) => PhoneSessionErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), assa_abloy_vostio_metadata: isset($json->assa_abloy_vostio_metadata) ? PhoneSessionAssaAbloyVostioMetadata::from_json( - $json->assa_abloy_vostio_metadata + $json->assa_abloy_vostio_metadata, ) : null, dormakaba_community_metadata: isset( - $json->dormakaba_community_metadata + $json->dormakaba_community_metadata, ) ? PhoneSessionDormakabaCommunityMetadata::from_json( - $json->dormakaba_community_metadata + $json->dormakaba_community_metadata, ) : null, latch_metadata: isset($json->latch_metadata) @@ -36,19 +36,19 @@ public static function from_json(mixed $json): PhoneSessionAcsEntrances|null : null, salto_ks_metadata: isset($json->salto_ks_metadata) ? PhoneSessionSaltoKsMetadata::from_json( - $json->salto_ks_metadata + $json->salto_ks_metadata, ) : null, salto_space_metadata: isset($json->salto_space_metadata) ? PhoneSessionSaltoSpaceMetadata::from_json( - $json->salto_space_metadata + $json->salto_space_metadata, ) : null, visionline_metadata: isset($json->visionline_metadata) ? PhoneSessionVisionlineMetadata::from_json( - $json->visionline_metadata + $json->visionline_metadata, ) - : null + : null, ); } @@ -64,6 +64,6 @@ public function __construct( public PhoneSessionLatchMetadata|null $latch_metadata, public PhoneSessionSaltoKsMetadata|null $salto_ks_metadata, public PhoneSessionSaltoSpaceMetadata|null $salto_space_metadata, - public PhoneSessionVisionlineMetadata|null $visionline_metadata + public PhoneSessionVisionlineMetadata|null $visionline_metadata, ) {} } diff --git a/src/Objects/PhoneSessionAssaAbloyVostioMetadata.php b/src/Objects/PhoneSessionAssaAbloyVostioMetadata.php index 0686d8a4..d5a85c3a 100644 --- a/src/Objects/PhoneSessionAssaAbloyVostioMetadata.php +++ b/src/Objects/PhoneSessionAssaAbloyVostioMetadata.php @@ -5,7 +5,7 @@ class PhoneSessionAssaAbloyVostioMetadata { public static function from_json( - mixed $json + mixed $json, ): PhoneSessionAssaAbloyVostioMetadata|null { if (!$json) { return null; @@ -15,7 +15,7 @@ public static function from_json( door_type: $json->door_type, door_number: $json->door_number ?? null, pms_id: $json->pms_id ?? null, - stand_open: $json->stand_open ?? null + stand_open: $json->stand_open ?? null, ); } @@ -24,6 +24,6 @@ public function __construct( public string $door_type, public float|null $door_number, public string|null $pms_id, - public bool|null $stand_open + public bool|null $stand_open, ) {} } diff --git a/src/Objects/PhoneSessionDormakabaCommunityMetadata.php b/src/Objects/PhoneSessionDormakabaCommunityMetadata.php index 78e1cc19..39857120 100644 --- a/src/Objects/PhoneSessionDormakabaCommunityMetadata.php +++ b/src/Objects/PhoneSessionDormakabaCommunityMetadata.php @@ -5,7 +5,7 @@ class PhoneSessionDormakabaCommunityMetadata { public static function from_json( - mixed $json + mixed $json, ): PhoneSessionDormakabaCommunityMetadata|null { if (!$json) { return null; diff --git a/src/Objects/PhoneSessionErrors.php b/src/Objects/PhoneSessionErrors.php index 9361f0c0..ba0adebf 100644 --- a/src/Objects/PhoneSessionErrors.php +++ b/src/Objects/PhoneSessionErrors.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): PhoneSessionErrors|null return new self( error_code: $json->error_code, message: $json->message, - created_at: $json->created_at ?? null + created_at: $json->created_at ?? null, ); } public function __construct( public string $error_code, public string $message, - public string|null $created_at + public string|null $created_at, ) {} } diff --git a/src/Objects/PhoneSessionLatchMetadata.php b/src/Objects/PhoneSessionLatchMetadata.php index 5f3118b9..3457c6c7 100644 --- a/src/Objects/PhoneSessionLatchMetadata.php +++ b/src/Objects/PhoneSessionLatchMetadata.php @@ -5,7 +5,7 @@ class PhoneSessionLatchMetadata { public static function from_json( - mixed $json + mixed $json, ): PhoneSessionLatchMetadata|null { if (!$json) { return null; @@ -14,7 +14,7 @@ public static function from_json( accessibility_type: $json->accessibility_type, door_name: $json->door_name, door_type: $json->door_type, - is_connected: $json->is_connected + is_connected: $json->is_connected, ); } @@ -22,6 +22,6 @@ public function __construct( public string $accessibility_type, public string $door_name, public string $door_type, - public bool $is_connected + public bool $is_connected, ) {} } diff --git a/src/Objects/PhoneSessionPhoneRegistration.php b/src/Objects/PhoneSessionPhoneRegistration.php index 40807ed1..8e565542 100644 --- a/src/Objects/PhoneSessionPhoneRegistration.php +++ b/src/Objects/PhoneSessionPhoneRegistration.php @@ -5,7 +5,7 @@ class PhoneSessionPhoneRegistration { public static function from_json( - mixed $json + mixed $json, ): PhoneSessionPhoneRegistration|null { if (!$json) { return null; @@ -14,7 +14,7 @@ public static function from_json( is_being_activated: $json->is_being_activated, phone_registration_id: $json->phone_registration_id, provider_state: $json->provider_state ?? null, - provider_name: $json->provider_name ?? null + provider_name: $json->provider_name ?? null, ); } @@ -22,6 +22,6 @@ public function __construct( public bool $is_being_activated, public string $phone_registration_id, public mixed $provider_state, - public string|null $provider_name + public string|null $provider_name, ) {} } diff --git a/src/Objects/PhoneSessionProfiles.php b/src/Objects/PhoneSessionProfiles.php index ec900605..5aa0a42b 100644 --- a/src/Objects/PhoneSessionProfiles.php +++ b/src/Objects/PhoneSessionProfiles.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): PhoneSessionProfiles|null } return new self( visionline_door_profile_id: $json->visionline_door_profile_id, - visionline_door_profile_type: $json->visionline_door_profile_type + visionline_door_profile_type: $json->visionline_door_profile_type, ); } public function __construct( public string $visionline_door_profile_id, - public string $visionline_door_profile_type + public string $visionline_door_profile_type, ) {} } diff --git a/src/Objects/PhoneSessionProviderSessions.php b/src/Objects/PhoneSessionProviderSessions.php index 9cafedf9..0cc2dfec 100644 --- a/src/Objects/PhoneSessionProviderSessions.php +++ b/src/Objects/PhoneSessionProviderSessions.php @@ -5,7 +5,7 @@ class PhoneSessionProviderSessions { public static function from_json( - mixed $json + mixed $json, ): PhoneSessionProviderSessions|null { if (!$json) { return null; @@ -13,16 +13,16 @@ public static function from_json( return new self( acs_credentials: array_map( fn($a) => PhoneSessionAcsCredentials::from_json($a), - $json->acs_credentials ?? [] + $json->acs_credentials ?? [], ), phone_registration: PhoneSessionPhoneRegistration::from_json( - $json->phone_registration - ) + $json->phone_registration, + ), ); } public function __construct( public array $acs_credentials, - public PhoneSessionPhoneRegistration $phone_registration + public PhoneSessionPhoneRegistration $phone_registration, ) {} } diff --git a/src/Objects/PhoneSessionSaltoKsMetadata.php b/src/Objects/PhoneSessionSaltoKsMetadata.php index ef017bf5..a5f8e8b8 100644 --- a/src/Objects/PhoneSessionSaltoKsMetadata.php +++ b/src/Objects/PhoneSessionSaltoKsMetadata.php @@ -5,7 +5,7 @@ class PhoneSessionSaltoKsMetadata { public static function from_json( - mixed $json + mixed $json, ): PhoneSessionSaltoKsMetadata|null { if (!$json) { return null; @@ -18,7 +18,7 @@ public static function from_json( intrusion_alarm: $json->intrusion_alarm ?? null, left_open_alarm: $json->left_open_alarm ?? null, online: $json->online ?? null, - privacy_mode: $json->privacy_mode ?? null + privacy_mode: $json->privacy_mode ?? null, ); } @@ -30,6 +30,6 @@ public function __construct( public bool|null $intrusion_alarm, public bool|null $left_open_alarm, public bool|null $online, - public bool|null $privacy_mode + public bool|null $privacy_mode, ) {} } diff --git a/src/Objects/PhoneSessionSaltoSpaceMetadata.php b/src/Objects/PhoneSessionSaltoSpaceMetadata.php index c84c2b21..bdbe3ed4 100644 --- a/src/Objects/PhoneSessionSaltoSpaceMetadata.php +++ b/src/Objects/PhoneSessionSaltoSpaceMetadata.php @@ -5,7 +5,7 @@ class PhoneSessionSaltoSpaceMetadata { public static function from_json( - mixed $json + mixed $json, ): PhoneSessionSaltoSpaceMetadata|null { if (!$json) { return null; @@ -13,13 +13,13 @@ public static function from_json( return new self( door_name: $json->door_name, ext_door_id: $json->ext_door_id, - door_description: $json->door_description ?? null + door_description: $json->door_description ?? null, ); } public function __construct( public string $door_name, public string $ext_door_id, - public string|null $door_description + public string|null $door_description, ) {} } diff --git a/src/Objects/PhoneSessionVisionlineMetadata.php b/src/Objects/PhoneSessionVisionlineMetadata.php index 58c3080b..b27da4b6 100644 --- a/src/Objects/PhoneSessionVisionlineMetadata.php +++ b/src/Objects/PhoneSessionVisionlineMetadata.php @@ -5,7 +5,7 @@ class PhoneSessionVisionlineMetadata { public static function from_json( - mixed $json + mixed $json, ): PhoneSessionVisionlineMetadata|null { if (!$json) { return null; @@ -15,14 +15,14 @@ public static function from_json( door_name: $json->door_name, profiles: array_map( fn($p) => PhoneSessionProfiles::from_json($p), - $json->profiles ?? [] - ) + $json->profiles ?? [], + ), ); } public function __construct( public string $door_category, public string $door_name, - public array|null $profiles + public array|null $profiles, ) {} } diff --git a/src/Objects/PhoneSessionWarnings.php b/src/Objects/PhoneSessionWarnings.php index 98009cbf..4f996b14 100644 --- a/src/Objects/PhoneSessionWarnings.php +++ b/src/Objects/PhoneSessionWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): PhoneSessionWarnings|null return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/PhoneWarnings.php b/src/Objects/PhoneWarnings.php index a6537831..cd1c273d 100644 --- a/src/Objects/PhoneWarnings.php +++ b/src/Objects/PhoneWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): PhoneWarnings|null return new self( message: $json->message, warning_code: $json->warning_code, - created_at: $json->created_at ?? null + created_at: $json->created_at ?? null, ); } public function __construct( public string $message, public string $warning_code, - public string|null $created_at + public string|null $created_at, ) {} } diff --git a/src/Objects/Space.php b/src/Objects/Space.php index c65d9954..04d2b031 100644 --- a/src/Objects/Space.php +++ b/src/Objects/Space.php @@ -14,7 +14,7 @@ public static function from_json(mixed $json): Space|null display_name: $json->display_name, name: $json->name, space_id: $json->space_id, - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -23,6 +23,6 @@ public function __construct( public string $display_name, public string $name, public string $space_id, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/ThermostatDailyProgram.php b/src/Objects/ThermostatDailyProgram.php index 44a9b03b..e7035db5 100644 --- a/src/Objects/ThermostatDailyProgram.php +++ b/src/Objects/ThermostatDailyProgram.php @@ -14,11 +14,11 @@ public static function from_json(mixed $json): ThermostatDailyProgram|null device_id: $json->device_id, periods: array_map( fn($p) => ThermostatDailyProgramPeriods::from_json($p), - $json->periods ?? [] + $json->periods ?? [], ), thermostat_daily_program_id: $json->thermostat_daily_program_id, workspace_id: $json->workspace_id, - name: $json->name ?? null + name: $json->name ?? null, ); } @@ -28,6 +28,6 @@ public function __construct( public array $periods, public string $thermostat_daily_program_id, public string $workspace_id, - public string|null $name + public string|null $name, ) {} } diff --git a/src/Objects/ThermostatDailyProgramPeriods.php b/src/Objects/ThermostatDailyProgramPeriods.php index 5567bc1a..a3ed0a18 100644 --- a/src/Objects/ThermostatDailyProgramPeriods.php +++ b/src/Objects/ThermostatDailyProgramPeriods.php @@ -5,19 +5,19 @@ class ThermostatDailyProgramPeriods { public static function from_json( - mixed $json + mixed $json, ): ThermostatDailyProgramPeriods|null { if (!$json) { return null; } return new self( climate_preset_key: $json->climate_preset_key, - starts_at_time: $json->starts_at_time + starts_at_time: $json->starts_at_time, ); } public function __construct( public string $climate_preset_key, - public string $starts_at_time + public string $starts_at_time, ) {} } diff --git a/src/Objects/ThermostatSchedule.php b/src/Objects/ThermostatSchedule.php index dba4a02a..4835df62 100644 --- a/src/Objects/ThermostatSchedule.php +++ b/src/Objects/ThermostatSchedule.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): ThermostatSchedule|null ends_at: $json->ends_at, errors: array_map( fn($e) => ThermostatScheduleErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), starts_at: $json->starts_at, thermostat_schedule_id: $json->thermostat_schedule_id, @@ -24,7 +24,7 @@ public static function from_json(mixed $json): ThermostatSchedule|null is_override_allowed: $json->is_override_allowed ?? null, name: $json->name ?? null, max_override_period_minutes: $json->max_override_period_minutes ?? - null + null, ); } @@ -39,6 +39,6 @@ public function __construct( public string $workspace_id, public bool|null $is_override_allowed, public string|null $name, - public mixed $max_override_period_minutes + public mixed $max_override_period_minutes, ) {} } diff --git a/src/Objects/ThermostatScheduleErrors.php b/src/Objects/ThermostatScheduleErrors.php index ebc98e10..de098f3f 100644 --- a/src/Objects/ThermostatScheduleErrors.php +++ b/src/Objects/ThermostatScheduleErrors.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): ThermostatScheduleErrors|null return new self( error_code: $json->error_code, message: $json->message, - created_at: $json->created_at ?? null + created_at: $json->created_at ?? null, ); } public function __construct( public string $error_code, public string $message, - public string|null $created_at + public string|null $created_at, ) {} } diff --git a/src/Objects/UnmanagedAccessCode.php b/src/Objects/UnmanagedAccessCode.php index e956093a..246439c5 100644 --- a/src/Objects/UnmanagedAccessCode.php +++ b/src/Objects/UnmanagedAccessCode.php @@ -15,19 +15,19 @@ public static function from_json(mixed $json): UnmanagedAccessCode|null device_id: $json->device_id, errors: array_map( fn($e) => UnmanagedAccessCodeErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), is_managed: $json->is_managed, status: $json->status, type: $json->type, warnings: array_map( fn($w) => UnmanagedAccessCodeWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), code: $json->code ?? null, name: $json->name ?? null, ends_at: $json->ends_at ?? null, - starts_at: $json->starts_at ?? null + starts_at: $json->starts_at ?? null, ); } @@ -43,6 +43,6 @@ public function __construct( public string|null $code, public string|null $name, public string|null $ends_at, - public string|null $starts_at + public string|null $starts_at, ) {} } diff --git a/src/Objects/UnmanagedAccessCodeErrors.php b/src/Objects/UnmanagedAccessCodeErrors.php index 8c393454..4a62e3de 100644 --- a/src/Objects/UnmanagedAccessCodeErrors.php +++ b/src/Objects/UnmanagedAccessCodeErrors.php @@ -5,7 +5,7 @@ class UnmanagedAccessCodeErrors { public static function from_json( - mixed $json + mixed $json, ): UnmanagedAccessCodeErrors|null { if (!$json) { return null; @@ -18,7 +18,7 @@ public static function from_json( is_bridge_error: $json->is_bridge_error ?? null, is_connected_account_error: $json->is_connected_account_error ?? null, - is_device_error: $json->is_device_error ?? null + is_device_error: $json->is_device_error ?? null, ); } @@ -29,6 +29,6 @@ public function __construct( public bool|null $is_access_code_error, public bool|null $is_bridge_error, public bool|null $is_connected_account_error, - public bool|null $is_device_error + public bool|null $is_device_error, ) {} } diff --git a/src/Objects/UnmanagedAccessCodeWarnings.php b/src/Objects/UnmanagedAccessCodeWarnings.php index e42686e9..349338da 100644 --- a/src/Objects/UnmanagedAccessCodeWarnings.php +++ b/src/Objects/UnmanagedAccessCodeWarnings.php @@ -5,7 +5,7 @@ class UnmanagedAccessCodeWarnings { public static function from_json( - mixed $json + mixed $json, ): UnmanagedAccessCodeWarnings|null { if (!$json) { return null; @@ -13,13 +13,13 @@ public static function from_json( return new self( message: $json->message, warning_code: $json->warning_code, - created_at: $json->created_at ?? null + created_at: $json->created_at ?? null, ); } public function __construct( public string $message, public string $warning_code, - public string|null $created_at + public string|null $created_at, ) {} } diff --git a/src/Objects/UnmanagedAcsAccessGroup.php b/src/Objects/UnmanagedAcsAccessGroup.php index a300738b..de9cd771 100644 --- a/src/Objects/UnmanagedAcsAccessGroup.php +++ b/src/Objects/UnmanagedAcsAccessGroup.php @@ -23,9 +23,9 @@ public static function from_json(mixed $json): UnmanagedAcsAccessGroup|null name: $json->name, warnings: array_map( fn($w) => UnmanagedAcsAccessGroupWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), - workspace_id: $json->workspace_id + workspace_id: $json->workspace_id, ); } @@ -42,6 +42,6 @@ public function __construct( public bool $is_managed, public string $name, public array $warnings, - public string $workspace_id + public string $workspace_id, ) {} } diff --git a/src/Objects/UnmanagedAcsAccessGroupWarnings.php b/src/Objects/UnmanagedAcsAccessGroupWarnings.php index 32b7dcb5..3b846ee2 100644 --- a/src/Objects/UnmanagedAcsAccessGroupWarnings.php +++ b/src/Objects/UnmanagedAcsAccessGroupWarnings.php @@ -5,7 +5,7 @@ class UnmanagedAcsAccessGroupWarnings { public static function from_json( - mixed $json + mixed $json, ): UnmanagedAcsAccessGroupWarnings|null { if (!$json) { return null; @@ -13,13 +13,13 @@ public static function from_json( return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/UnmanagedAcsCredential.php b/src/Objects/UnmanagedAcsCredential.php index eae120d4..30300d51 100644 --- a/src/Objects/UnmanagedAcsCredential.php +++ b/src/Objects/UnmanagedAcsCredential.php @@ -17,19 +17,19 @@ public static function from_json(mixed $json): UnmanagedAcsCredential|null display_name: $json->display_name, errors: array_map( fn($e) => UnmanagedAcsCredentialErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), is_managed: $json->is_managed, warnings: array_map( fn($w) => UnmanagedAcsCredentialWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, acs_credential_pool_id: $json->acs_credential_pool_id ?? null, acs_user_id: $json->acs_user_id ?? null, assa_abloy_vostio_metadata: isset($json->assa_abloy_vostio_metadata) ? UnmanagedAcsCredentialAssaAbloyVostioMetadata::from_json( - $json->assa_abloy_vostio_metadata + $json->assa_abloy_vostio_metadata, ) : null, ends_at: $json->ends_at ?? null, @@ -44,7 +44,7 @@ public static function from_json(mixed $json): UnmanagedAcsCredential|null starts_at: $json->starts_at ?? null, visionline_metadata: isset($json->visionline_metadata) ? UnmanagedAcsCredentialVisionlineMetadata::from_json( - $json->visionline_metadata + $json->visionline_metadata, ) : null, card_number: $json->card_number ?? null, @@ -53,7 +53,7 @@ public static function from_json(mixed $json): UnmanagedAcsCredential|null null, issued_at: $json->issued_at ?? null, latest_desired_state_synced_with_provider_at: $json->latest_desired_state_synced_with_provider_at ?? - null + null, ); } @@ -83,6 +83,6 @@ public function __construct( public string|null $code, public bool|null $is_latest_desired_state_synced_with_provider, public string|null $issued_at, - public string|null $latest_desired_state_synced_with_provider_at + public string|null $latest_desired_state_synced_with_provider_at, ) {} } diff --git a/src/Objects/UnmanagedAcsCredentialAssaAbloyVostioMetadata.php b/src/Objects/UnmanagedAcsCredentialAssaAbloyVostioMetadata.php index 2600b4b9..721f762b 100644 --- a/src/Objects/UnmanagedAcsCredentialAssaAbloyVostioMetadata.php +++ b/src/Objects/UnmanagedAcsCredentialAssaAbloyVostioMetadata.php @@ -5,7 +5,7 @@ class UnmanagedAcsCredentialAssaAbloyVostioMetadata { public static function from_json( - mixed $json + mixed $json, ): UnmanagedAcsCredentialAssaAbloyVostioMetadata|null { if (!$json) { return null; @@ -17,7 +17,7 @@ public static function from_json( key_id: $json->key_id ?? null, key_issuing_request_id: $json->key_issuing_request_id ?? null, override_guest_acs_entrance_ids: $json->override_guest_acs_entrance_ids ?? - null + null, ); } @@ -27,6 +27,6 @@ public function __construct( public string|null $endpoint_id, public string|null $key_id, public string|null $key_issuing_request_id, - public array|null $override_guest_acs_entrance_ids + public array|null $override_guest_acs_entrance_ids, ) {} } diff --git a/src/Objects/UnmanagedAcsCredentialErrors.php b/src/Objects/UnmanagedAcsCredentialErrors.php index 7500502e..9e4d04d8 100644 --- a/src/Objects/UnmanagedAcsCredentialErrors.php +++ b/src/Objects/UnmanagedAcsCredentialErrors.php @@ -5,7 +5,7 @@ class UnmanagedAcsCredentialErrors { public static function from_json( - mixed $json + mixed $json, ): UnmanagedAcsCredentialErrors|null { if (!$json) { return null; @@ -13,13 +13,13 @@ public static function from_json( return new self( error_code: $json->error_code, message: $json->message, - created_at: $json->created_at ?? null + created_at: $json->created_at ?? null, ); } public function __construct( public string $error_code, public string $message, - public string|null $created_at + public string|null $created_at, ) {} } diff --git a/src/Objects/UnmanagedAcsCredentialVisionlineMetadata.php b/src/Objects/UnmanagedAcsCredentialVisionlineMetadata.php index 07c9de81..504a74a9 100644 --- a/src/Objects/UnmanagedAcsCredentialVisionlineMetadata.php +++ b/src/Objects/UnmanagedAcsCredentialVisionlineMetadata.php @@ -5,7 +5,7 @@ class UnmanagedAcsCredentialVisionlineMetadata { public static function from_json( - mixed $json + mixed $json, ): UnmanagedAcsCredentialVisionlineMetadata|null { if (!$json) { return null; @@ -18,7 +18,7 @@ public static function from_json( credential_id: $json->credential_id ?? null, guest_acs_entrance_ids: $json->guest_acs_entrance_ids ?? null, is_valid: $json->is_valid ?? null, - joiner_acs_credential_ids: $json->joiner_acs_credential_ids ?? null + joiner_acs_credential_ids: $json->joiner_acs_credential_ids ?? null, ); } @@ -30,6 +30,6 @@ public function __construct( public string|null $credential_id, public array|null $guest_acs_entrance_ids, public bool|null $is_valid, - public array|null $joiner_acs_credential_ids + public array|null $joiner_acs_credential_ids, ) {} } diff --git a/src/Objects/UnmanagedAcsCredentialWarnings.php b/src/Objects/UnmanagedAcsCredentialWarnings.php index 2f89b278..4619a5db 100644 --- a/src/Objects/UnmanagedAcsCredentialWarnings.php +++ b/src/Objects/UnmanagedAcsCredentialWarnings.php @@ -5,7 +5,7 @@ class UnmanagedAcsCredentialWarnings { public static function from_json( - mixed $json + mixed $json, ): UnmanagedAcsCredentialWarnings|null { if (!$json) { return null; @@ -13,13 +13,13 @@ public static function from_json( return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/UnmanagedAcsUser.php b/src/Objects/UnmanagedAcsUser.php index afed4fd6..3dd43452 100644 --- a/src/Objects/UnmanagedAcsUser.php +++ b/src/Objects/UnmanagedAcsUser.php @@ -17,17 +17,17 @@ public static function from_json(mixed $json): UnmanagedAcsUser|null display_name: $json->display_name, errors: array_map( fn($e) => UnmanagedAcsUserErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), is_managed: $json->is_managed, warnings: array_map( fn($w) => UnmanagedAcsUserWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, access_schedule: isset($json->access_schedule) ? UnmanagedAcsUserAccessSchedule::from_json( - $json->access_schedule + $json->access_schedule, ) : null, email: $json->email ?? null, @@ -40,7 +40,7 @@ public static function from_json(mixed $json): UnmanagedAcsUser|null is_suspended: $json->is_suspended ?? null, pending_mutations: array_map( fn($p) => UnmanagedAcsUserPendingMutations::from_json($p), - $json->pending_mutations ?? [] + $json->pending_mutations ?? [], ), phone_number: $json->phone_number ?? null, user_identity_id: $json->user_identity_id ?? null, @@ -49,7 +49,7 @@ public static function from_json(mixed $json): UnmanagedAcsUser|null null, user_identity_full_name: $json->user_identity_full_name ?? null, user_identity_phone_number: $json->user_identity_phone_number ?? - null + null, ); } @@ -77,6 +77,6 @@ public function __construct( public string|null $last_successful_sync_at, public string|null $user_identity_email_address, public string|null $user_identity_full_name, - public string|null $user_identity_phone_number + public string|null $user_identity_phone_number, ) {} } diff --git a/src/Objects/UnmanagedAcsUserAccessSchedule.php b/src/Objects/UnmanagedAcsUserAccessSchedule.php index ba0a63a9..808967eb 100644 --- a/src/Objects/UnmanagedAcsUserAccessSchedule.php +++ b/src/Objects/UnmanagedAcsUserAccessSchedule.php @@ -5,19 +5,19 @@ class UnmanagedAcsUserAccessSchedule { public static function from_json( - mixed $json + mixed $json, ): UnmanagedAcsUserAccessSchedule|null { if (!$json) { return null; } return new self( starts_at: $json->starts_at, - ends_at: $json->ends_at ?? null + ends_at: $json->ends_at ?? null, ); } public function __construct( public string $starts_at, - public string|null $ends_at + public string|null $ends_at, ) {} } diff --git a/src/Objects/UnmanagedAcsUserErrors.php b/src/Objects/UnmanagedAcsUserErrors.php index 580d3658..73df443a 100644 --- a/src/Objects/UnmanagedAcsUserErrors.php +++ b/src/Objects/UnmanagedAcsUserErrors.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): UnmanagedAcsUserErrors|null return new self( created_at: $json->created_at, error_code: $json->error_code, - message: $json->message + message: $json->message, ); } public function __construct( public string $created_at, public string $error_code, - public string $message + public string $message, ) {} } diff --git a/src/Objects/UnmanagedAcsUserFrom.php b/src/Objects/UnmanagedAcsUserFrom.php index 553a7af5..b02b1c3f 100644 --- a/src/Objects/UnmanagedAcsUserFrom.php +++ b/src/Objects/UnmanagedAcsUserFrom.php @@ -10,7 +10,7 @@ public static function from_json(mixed $json): UnmanagedAcsUserFrom|null return null; } return new self( - acs_access_group_id: $json->acs_access_group_id ?? null + acs_access_group_id: $json->acs_access_group_id ?? null, ); } diff --git a/src/Objects/UnmanagedAcsUserPendingMutations.php b/src/Objects/UnmanagedAcsUserPendingMutations.php index d02b5c35..fd14ebfc 100644 --- a/src/Objects/UnmanagedAcsUserPendingMutations.php +++ b/src/Objects/UnmanagedAcsUserPendingMutations.php @@ -5,7 +5,7 @@ class UnmanagedAcsUserPendingMutations { public static function from_json( - mixed $json + mixed $json, ): UnmanagedAcsUserPendingMutations|null { if (!$json) { return null; @@ -19,7 +19,7 @@ public static function from_json( : null, to: isset($json->to) ? UnmanagedAcsUserTo::from_json($json->to) - : null + : null, ); } @@ -28,6 +28,6 @@ public function __construct( public string $message, public string $mutation_code, public UnmanagedAcsUserFrom|null $from, - public UnmanagedAcsUserTo|null $to + public UnmanagedAcsUserTo|null $to, ) {} } diff --git a/src/Objects/UnmanagedAcsUserTo.php b/src/Objects/UnmanagedAcsUserTo.php index 3b5a8d86..5d737dd1 100644 --- a/src/Objects/UnmanagedAcsUserTo.php +++ b/src/Objects/UnmanagedAcsUserTo.php @@ -10,7 +10,7 @@ public static function from_json(mixed $json): UnmanagedAcsUserTo|null return null; } return new self( - acs_access_group_id: $json->acs_access_group_id ?? null + acs_access_group_id: $json->acs_access_group_id ?? null, ); } diff --git a/src/Objects/UnmanagedAcsUserWarnings.php b/src/Objects/UnmanagedAcsUserWarnings.php index 231c56ec..de88b87c 100644 --- a/src/Objects/UnmanagedAcsUserWarnings.php +++ b/src/Objects/UnmanagedAcsUserWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): UnmanagedAcsUserWarnings|null return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/UnmanagedDevice.php b/src/Objects/UnmanagedDevice.php index 35abff99..c793f62a 100644 --- a/src/Objects/UnmanagedDevice.php +++ b/src/Objects/UnmanagedDevice.php @@ -17,13 +17,13 @@ public static function from_json(mixed $json): UnmanagedDevice|null device_type: $json->device_type, errors: array_map( fn($e) => UnmanagedDeviceErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), is_managed: $json->is_managed, properties: UnmanagedDeviceProperties::from_json($json->properties), warnings: array_map( fn($w) => UnmanagedDeviceWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, can_hvac_cool: $json->can_hvac_cool ?? null, @@ -42,7 +42,7 @@ public static function from_json(mixed $json): UnmanagedDevice|null can_turn_off_hvac: $json->can_turn_off_hvac ?? null, location: isset($json->location) ? UnmanagedDeviceLocation::from_json($json->location) - : null + : null, ); } @@ -68,6 +68,6 @@ public function __construct( public bool|null $can_simulate_disconnection, public bool|null $can_simulate_removal, public bool|null $can_turn_off_hvac, - public UnmanagedDeviceLocation|null $location + public UnmanagedDeviceLocation|null $location, ) {} } diff --git a/src/Objects/UnmanagedDeviceAccessoryKeypad.php b/src/Objects/UnmanagedDeviceAccessoryKeypad.php index 8e3a9a0c..8498077b 100644 --- a/src/Objects/UnmanagedDeviceAccessoryKeypad.php +++ b/src/Objects/UnmanagedDeviceAccessoryKeypad.php @@ -5,7 +5,7 @@ class UnmanagedDeviceAccessoryKeypad { public static function from_json( - mixed $json + mixed $json, ): UnmanagedDeviceAccessoryKeypad|null { if (!$json) { return null; @@ -14,12 +14,12 @@ public static function from_json( is_connected: $json->is_connected, battery: isset($json->battery) ? UnmanagedDeviceBattery::from_json($json->battery) - : null + : null, ); } public function __construct( public bool $is_connected, - public UnmanagedDeviceBattery|null $battery + public UnmanagedDeviceBattery|null $battery, ) {} } diff --git a/src/Objects/UnmanagedDeviceErrors.php b/src/Objects/UnmanagedDeviceErrors.php index 72ef5000..8d5f9de5 100644 --- a/src/Objects/UnmanagedDeviceErrors.php +++ b/src/Objects/UnmanagedDeviceErrors.php @@ -16,7 +16,7 @@ public static function from_json(mixed $json): UnmanagedDeviceErrors|null is_bridge_error: $json->is_bridge_error ?? null, is_connected_account_error: $json->is_connected_account_error ?? null, - is_device_error: $json->is_device_error ?? null + is_device_error: $json->is_device_error ?? null, ); } @@ -26,6 +26,6 @@ public function __construct( public string $message, public bool|null $is_bridge_error, public bool|null $is_connected_account_error, - public bool|null $is_device_error + public bool|null $is_device_error, ) {} } diff --git a/src/Objects/UnmanagedDeviceLocation.php b/src/Objects/UnmanagedDeviceLocation.php index 262d402e..a08f5844 100644 --- a/src/Objects/UnmanagedDeviceLocation.php +++ b/src/Objects/UnmanagedDeviceLocation.php @@ -11,12 +11,12 @@ public static function from_json(mixed $json): UnmanagedDeviceLocation|null } return new self( location_name: $json->location_name ?? null, - timezone: $json->timezone ?? null + timezone: $json->timezone ?? null, ); } public function __construct( public string|null $location_name, - public string|null $timezone + public string|null $timezone, ) {} } diff --git a/src/Objects/UnmanagedDeviceModel.php b/src/Objects/UnmanagedDeviceModel.php index 1d4b6612..7ee800cd 100644 --- a/src/Objects/UnmanagedDeviceModel.php +++ b/src/Objects/UnmanagedDeviceModel.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): UnmanagedDeviceModel|null offline_access_codes_supported: $json->offline_access_codes_supported ?? null, online_access_codes_supported: $json->online_access_codes_supported ?? - null + null, ); } @@ -31,6 +31,6 @@ public function __construct( public bool|null $can_connect_accessory_keypad, public bool|null $has_built_in_keypad, public bool|null $offline_access_codes_supported, - public bool|null $online_access_codes_supported + public bool|null $online_access_codes_supported, ) {} } diff --git a/src/Objects/UnmanagedDeviceProperties.php b/src/Objects/UnmanagedDeviceProperties.php index 407673e3..0b46bd8a 100644 --- a/src/Objects/UnmanagedDeviceProperties.php +++ b/src/Objects/UnmanagedDeviceProperties.php @@ -5,7 +5,7 @@ class UnmanagedDeviceProperties { public static function from_json( - mixed $json + mixed $json, ): UnmanagedDeviceProperties|null { if (!$json) { return null; @@ -16,7 +16,7 @@ public static function from_json( online: $json->online, accessory_keypad: isset($json->accessory_keypad) ? UnmanagedDeviceAccessoryKeypad::from_json( - $json->accessory_keypad + $json->accessory_keypad, ) : null, battery: isset($json->battery) @@ -29,7 +29,7 @@ public static function from_json( offline_access_codes_enabled: $json->offline_access_codes_enabled ?? null, online_access_codes_enabled: $json->online_access_codes_enabled ?? - null + null, ); } @@ -44,6 +44,6 @@ public function __construct( public string|null $image_url, public string|null $manufacturer, public bool|null $offline_access_codes_enabled, - public bool|null $online_access_codes_enabled + public bool|null $online_access_codes_enabled, ) {} } diff --git a/src/Objects/UnmanagedDeviceWarnings.php b/src/Objects/UnmanagedDeviceWarnings.php index 3a1d4904..4228dc8d 100644 --- a/src/Objects/UnmanagedDeviceWarnings.php +++ b/src/Objects/UnmanagedDeviceWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): UnmanagedDeviceWarnings|null return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/UserIdentity.php b/src/Objects/UserIdentity.php index 0f6fb291..ba105268 100644 --- a/src/Objects/UserIdentity.php +++ b/src/Objects/UserIdentity.php @@ -14,18 +14,18 @@ public static function from_json(mixed $json): UserIdentity|null display_name: $json->display_name, errors: array_map( fn($e) => UserIdentityErrors::from_json($e), - $json->errors ?? [] + $json->errors ?? [], ), user_identity_id: $json->user_identity_id, warnings: array_map( fn($w) => UserIdentityWarnings::from_json($w), - $json->warnings ?? [] + $json->warnings ?? [], ), workspace_id: $json->workspace_id, email_address: $json->email_address ?? null, full_name: $json->full_name ?? null, phone_number: $json->phone_number ?? null, - user_identity_key: $json->user_identity_key ?? null + user_identity_key: $json->user_identity_key ?? null, ); } @@ -39,6 +39,6 @@ public function __construct( public string|null $email_address, public string|null $full_name, public string|null $phone_number, - public string|null $user_identity_key + public string|null $user_identity_key, ) {} } diff --git a/src/Objects/UserIdentityErrors.php b/src/Objects/UserIdentityErrors.php index 1c25471e..9dfbce6c 100644 --- a/src/Objects/UserIdentityErrors.php +++ b/src/Objects/UserIdentityErrors.php @@ -14,6 +14,6 @@ public static function from_json(mixed $json): UserIdentityErrors|null public function __construct( public string $created_at, - public string $message + public string $message, ) {} } diff --git a/src/Objects/UserIdentityWarnings.php b/src/Objects/UserIdentityWarnings.php index 3e3df5c4..8ed3fa89 100644 --- a/src/Objects/UserIdentityWarnings.php +++ b/src/Objects/UserIdentityWarnings.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): UserIdentityWarnings|null return new self( created_at: $json->created_at, message: $json->message, - warning_code: $json->warning_code + warning_code: $json->warning_code, ); } public function __construct( public string $created_at, public string $message, - public string $warning_code + public string $warning_code, ) {} } diff --git a/src/Objects/Webhook.php b/src/Objects/Webhook.php index 1a77fe18..484e7432 100644 --- a/src/Objects/Webhook.php +++ b/src/Objects/Webhook.php @@ -13,7 +13,7 @@ public static function from_json(mixed $json): Webhook|null url: $json->url, webhook_id: $json->webhook_id, event_types: $json->event_types ?? null, - secret: $json->secret ?? null + secret: $json->secret ?? null, ); } @@ -21,6 +21,6 @@ public function __construct( public string $url, public string $webhook_id, public array|null $event_types, - public string|null $secret + public string|null $secret, ) {} } diff --git a/src/Objects/Workspace.php b/src/Objects/Workspace.php index 90a6eac8..98cdfd10 100644 --- a/src/Objects/Workspace.php +++ b/src/Objects/Workspace.php @@ -12,13 +12,13 @@ public static function from_json(mixed $json): Workspace|null return new self( company_name: $json->company_name, connect_webview_customization: WorkspaceConnectWebviewCustomization::from_json( - $json->connect_webview_customization + $json->connect_webview_customization, ), is_sandbox: $json->is_sandbox, is_suspended: $json->is_suspended, name: $json->name, workspace_id: $json->workspace_id, - connect_partner_name: $json->connect_partner_name ?? null + connect_partner_name: $json->connect_partner_name ?? null, ); } @@ -29,6 +29,6 @@ public function __construct( public bool $is_suspended, public string $name, public string $workspace_id, - public string|null $connect_partner_name + public string|null $connect_partner_name, ) {} } diff --git a/src/Objects/WorkspaceConnectWebviewCustomization.php b/src/Objects/WorkspaceConnectWebviewCustomization.php index 32ab40ee..373165eb 100644 --- a/src/Objects/WorkspaceConnectWebviewCustomization.php +++ b/src/Objects/WorkspaceConnectWebviewCustomization.php @@ -5,7 +5,7 @@ class WorkspaceConnectWebviewCustomization { public static function from_json( - mixed $json + mixed $json, ): WorkspaceConnectWebviewCustomization|null { if (!$json) { return null; @@ -15,7 +15,7 @@ public static function from_json( logo_shape: $json->logo_shape ?? null, primary_button_color: $json->primary_button_color ?? null, primary_button_text_color: $json->primary_button_text_color ?? null, - success_message: $json->success_message ?? null + success_message: $json->success_message ?? null, ); } @@ -24,6 +24,6 @@ public function __construct( public string|null $logo_shape, public string|null $primary_button_color, public string|null $primary_button_text_color, - public string|null $success_message + public string|null $success_message, ) {} } diff --git a/src/Paginator.php b/src/Paginator.php index d28e8346..a913cf80 100644 --- a/src/Paginator.php +++ b/src/Paginator.php @@ -22,7 +22,7 @@ public function firstPage(): array $params["on_response"] = fn($response) => $this->cachePagination( $response, - self::FIRST_PAGE + self::FIRST_PAGE, ); $data = $request($params); @@ -34,7 +34,7 @@ public function nextPage(string $next_page_cursor): array { if ($next_page_cursor === null) { throw new \InvalidArgumentException( - "Cannot get the next page with a null next_page_cursor" + "Cannot get the next page with a null next_page_cursor", ); } @@ -44,7 +44,7 @@ public function nextPage(string $next_page_cursor): array $params["page_cursor"] = $next_page_cursor; $params["on_response"] = fn($response) => $this->cachePagination( $response, - $next_page_cursor + $next_page_cursor, ); $data = $request($params); @@ -66,7 +66,7 @@ public function flattenToArray(): array while ($pagination->has_next_page) { [$response, $pagination] = $this->nextPage( - $pagination->next_page_cursor + $pagination->next_page_cursor, ); $items = array_merge($items, $response); } @@ -84,7 +84,7 @@ public function flatten() while ($pagination->has_next_page) { [$current, $pagination] = $this->nextPage( - $pagination->next_page_cursor + $pagination->next_page_cursor, ); foreach ($current as $item) { diff --git a/src/SeamClient.php b/src/SeamClient.php index 47f09953..f7046f47 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -83,7 +83,7 @@ class SeamClient public function __construct( $api_key = null, $endpoint = "https://connect.getseam.com", - $throw_http_errors = false + $throw_http_errors = false, ) { $this->api_key = $api_key ?: (getenv("SEAM_API_KEY") ?: null); $seam_sdk_version = PackageVersion::get(); @@ -149,20 +149,20 @@ public function request($method, $path, $json = null, $query = null) throw new HttpInvalidInputError( $res_json->error, $status_code, - $request_id + $request_id, ); } throw new HttpApiError( $res_json->error, $status_code, - $request_id + $request_id, ); } throw GuzzleHttpExceptionRequestException::create( new GuzzleHttpPsr7Request($method, $path), - $response + $response, ); } @@ -204,7 +204,7 @@ public function create( ?string $starts_at = null, ?bool $sync = null, ?bool $use_backup_access_code_pool = null, - ?bool $use_offline_access_code = null + ?bool $use_offline_access_code = null, ): AccessCode { $request_payload = []; @@ -277,7 +277,7 @@ public function create( $res = $this->seam->request( "POST", "/access_codes/create", - json: (object) $request_payload + json: (object) $request_payload, ); return AccessCode::from_json($res->access_code); @@ -299,7 +299,7 @@ public function create_multiple( ?float $preferred_code_length = null, ?string $starts_at = null, ?bool $use_backup_access_code_pool = null, - ?bool $use_offline_access_code = null + ?bool $use_offline_access_code = null, ): array { $request_payload = []; @@ -371,19 +371,19 @@ public function create_multiple( $res = $this->seam->request( "POST", "/access_codes/create_multiple", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AccessCode::from_json($r), - $res->access_codes + $res->access_codes, ); } public function delete( string $access_code_id, ?string $device_id = null, - ?bool $sync = null + ?bool $sync = null, ): void { $request_payload = []; @@ -400,7 +400,7 @@ public function delete( $this->seam->request( "POST", "/access_codes/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -415,7 +415,7 @@ public function generate_code(string $device_id): AccessCode $res = $this->seam->request( "POST", "/access_codes/generate_code", - json: (object) $request_payload + json: (object) $request_payload, ); return AccessCode::from_json($res->generated_code); @@ -424,7 +424,7 @@ public function generate_code(string $device_id): AccessCode public function get( ?string $access_code_id = null, ?string $code = null, - ?string $device_id = null + ?string $device_id = null, ): AccessCode { $request_payload = []; @@ -441,7 +441,7 @@ public function get( $res = $this->seam->request( "POST", "/access_codes/get", - json: (object) $request_payload + json: (object) $request_payload, ); return AccessCode::from_json($res->access_code); @@ -454,7 +454,7 @@ public function list( ?float $limit = null, ?string $page_cursor = null, ?string $user_identifier_key = null, - ?callable $on_response = null + ?callable $on_response = null, ): array { $request_payload = []; @@ -480,7 +480,7 @@ public function list( $res = $this->seam->request( "POST", "/access_codes/list", - json: (object) $request_payload + json: (object) $request_payload, ); if ($on_response !== null) { @@ -489,7 +489,7 @@ public function list( return array_map( fn($r) => AccessCode::from_json($r), - $res->access_codes + $res->access_codes, ); } @@ -504,7 +504,7 @@ public function pull_backup_access_code(string $access_code_id): AccessCode $res = $this->seam->request( "POST", "/access_codes/pull_backup_access_code", - json: (object) $request_payload + json: (object) $request_payload, ); return AccessCode::from_json($res->access_code); @@ -514,7 +514,7 @@ public function report_device_constraints( string $device_id, mixed $max_code_length = null, mixed $min_code_length = null, - ?array $supported_code_lengths = null + ?array $supported_code_lengths = null, ): void { $request_payload = []; @@ -536,7 +536,7 @@ public function report_device_constraints( $this->seam->request( "POST", "/access_codes/report_device_constraints", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -559,7 +559,7 @@ public function update( ?bool $sync = null, ?string $type = null, ?bool $use_backup_access_code_pool = null, - ?bool $use_offline_access_code = null + ?bool $use_offline_access_code = null, ): void { $request_payload = []; @@ -638,7 +638,7 @@ public function update( $this->seam->request( "POST", "/access_codes/update", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -646,7 +646,7 @@ public function update_multiple( string $common_code_key, ?string $ends_at = null, ?string $name = null, - ?string $starts_at = null + ?string $starts_at = null, ): void { $request_payload = []; @@ -666,7 +666,7 @@ public function update_multiple( $this->seam->request( "POST", "/access_codes/update_multiple", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -683,7 +683,7 @@ public function __construct(SeamClient $seam) public function create_unmanaged_access_code( string $code, string $device_id, - string $name + string $name, ): UnmanagedAccessCode { $request_payload = []; @@ -700,7 +700,7 @@ public function create_unmanaged_access_code( $res = $this->seam->request( "POST", "/access_codes/simulate/create_unmanaged_access_code", - json: (object) $request_payload + json: (object) $request_payload, ); return UnmanagedAccessCode::from_json($res->access_code); @@ -721,7 +721,7 @@ public function convert_to_managed( ?bool $allow_external_modification = null, ?bool $force = null, ?bool $is_external_modification_allowed = null, - ?bool $sync = null + ?bool $sync = null, ): void { $request_payload = []; @@ -748,7 +748,7 @@ public function convert_to_managed( $this->seam->request( "POST", "/access_codes/unmanaged/convert_to_managed", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -766,14 +766,14 @@ public function delete(string $access_code_id, ?bool $sync = null): void $this->seam->request( "POST", "/access_codes/unmanaged/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } public function get( ?string $access_code_id = null, ?string $code = null, - ?string $device_id = null + ?string $device_id = null, ): UnmanagedAccessCode { $request_payload = []; @@ -790,7 +790,7 @@ public function get( $res = $this->seam->request( "POST", "/access_codes/unmanaged/get", - json: (object) $request_payload + json: (object) $request_payload, ); return UnmanagedAccessCode::from_json($res->access_code); @@ -798,7 +798,7 @@ public function get( public function list( string $device_id, - ?string $user_identifier_key = null + ?string $user_identifier_key = null, ): array { $request_payload = []; @@ -812,12 +812,12 @@ public function list( $res = $this->seam->request( "POST", "/access_codes/unmanaged/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => UnmanagedAccessCode::from_json($r), - $res->access_codes + $res->access_codes, ); } @@ -826,7 +826,7 @@ public function update( bool $is_managed, ?bool $allow_external_modification = null, ?bool $force = null, - ?bool $is_external_modification_allowed = null + ?bool $is_external_modification_allowed = null, ): void { $request_payload = []; @@ -853,7 +853,7 @@ public function update( $this->seam->request( "POST", "/access_codes/unmanaged/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -877,7 +877,7 @@ public function create( mixed $location = null, ?array $location_ids = null, ?array $space_ids = null, - ?string $starts_at = null + ?string $starts_at = null, ): AccessGrant { $request_payload = []; @@ -917,7 +917,7 @@ public function create( $res = $this->seam->request( "POST", "/access_grants/create", - json: (object) $request_payload + json: (object) $request_payload, ); return AccessGrant::from_json($res->access_grant); @@ -934,7 +934,7 @@ public function delete(string $access_grant_id): void $this->seam->request( "POST", "/access_grants/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -949,7 +949,7 @@ public function get(string $access_grant_id): AccessGrant $res = $this->seam->request( "POST", "/access_grants/get", - json: (object) $request_payload + json: (object) $request_payload, ); return AccessGrant::from_json($res->access_grant); @@ -960,7 +960,7 @@ public function list( ?string $acs_system_id = null, ?string $location_id = null, ?string $space_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): array { $request_payload = []; @@ -983,19 +983,19 @@ public function list( $res = $this->seam->request( "POST", "/access_grants/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AccessGrant::from_json($r), - $res->access_grants + $res->access_grants, ); } public function update( string $access_grant_id, ?string $ends_at = null, - ?string $starts_at = null + ?string $starts_at = null, ): void { $request_payload = []; @@ -1012,7 +1012,7 @@ public function update( $this->seam->request( "POST", "/access_grants/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -1037,7 +1037,7 @@ public function delete(string $access_method_id): void $this->seam->request( "POST", "/access_methods/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -1052,7 +1052,7 @@ public function get(string $access_method_id): AccessMethod $res = $this->seam->request( "POST", "/access_methods/get", - json: (object) $request_payload + json: (object) $request_payload, ); return AccessMethod::from_json($res->access_method); @@ -1069,12 +1069,12 @@ public function list(string $access_grant_id): array $res = $this->seam->request( "POST", "/access_methods/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AccessMethod::from_json($r), - $res->access_methods + $res->access_methods, ); } } @@ -1091,7 +1091,7 @@ public function __construct(SeamClient $seam) public function add_user( string $acs_access_group_id, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -1108,7 +1108,7 @@ public function add_user( $this->seam->request( "POST", "/acs/access_groups/add_user", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -1123,7 +1123,7 @@ public function get(string $acs_access_group_id): AcsAccessGroup $res = $this->seam->request( "POST", "/acs/access_groups/get", - json: (object) $request_payload + json: (object) $request_payload, ); return AcsAccessGroup::from_json($res->acs_access_group); @@ -1132,7 +1132,7 @@ public function get(string $acs_access_group_id): AcsAccessGroup public function list( ?string $acs_system_id = null, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): array { $request_payload = []; @@ -1149,17 +1149,17 @@ public function list( $res = $this->seam->request( "POST", "/acs/access_groups/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AcsAccessGroup::from_json($r), - $res->acs_access_groups + $res->acs_access_groups, ); } public function list_accessible_entrances( - string $acs_access_group_id + string $acs_access_group_id, ): array { $request_payload = []; @@ -1170,12 +1170,12 @@ public function list_accessible_entrances( $res = $this->seam->request( "POST", "/acs/access_groups/list_accessible_entrances", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AcsEntrance::from_json($r), - $res->acs_entrances + $res->acs_entrances, ); } @@ -1190,7 +1190,7 @@ public function list_users(string $acs_access_group_id): array $res = $this->seam->request( "POST", "/acs/access_groups/list_users", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map(fn($r) => AcsUser::from_json($r), $res->acs_users); @@ -1199,7 +1199,7 @@ public function list_users(string $acs_access_group_id): array public function remove_user( string $acs_access_group_id, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -1216,7 +1216,7 @@ public function remove_user( $this->seam->request( "POST", "/acs/access_groups/remove_user", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -1254,7 +1254,7 @@ public function __construct(SeamClient $seam) public function assign( string $acs_credential_id, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -1271,7 +1271,7 @@ public function assign( $this->seam->request( "POST", "/acs/credentials/assign", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -1288,7 +1288,7 @@ public function create( mixed $salto_space_metadata = null, ?string $starts_at = null, ?string $user_identity_id = null, - mixed $visionline_metadata = null + mixed $visionline_metadata = null, ): AcsCredential { $request_payload = []; @@ -1343,7 +1343,7 @@ public function create( $res = $this->seam->request( "POST", "/acs/credentials/create", - json: (object) $request_payload + json: (object) $request_payload, ); return AcsCredential::from_json($res->acs_credential); @@ -1360,7 +1360,7 @@ public function delete(string $acs_credential_id): void $this->seam->request( "POST", "/acs/credentials/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -1375,7 +1375,7 @@ public function get(string $acs_credential_id): AcsCredential $res = $this->seam->request( "POST", "/acs/credentials/get", - json: (object) $request_payload + json: (object) $request_payload, ); return AcsCredential::from_json($res->acs_credential); @@ -1387,7 +1387,7 @@ public function list( ?string $user_identity_id = null, ?string $created_before = null, ?bool $is_multi_phone_sync_credential = null, - ?float $limit = null + ?float $limit = null, ): array { $request_payload = []; @@ -1415,12 +1415,12 @@ public function list( $res = $this->seam->request( "POST", "/acs/credentials/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AcsCredential::from_json($r), - $res->acs_credentials + $res->acs_credentials, ); } @@ -1435,19 +1435,19 @@ public function list_accessible_entrances(string $acs_credential_id): array $res = $this->seam->request( "POST", "/acs/credentials/list_accessible_entrances", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AcsEntrance::from_json($r), - $res->acs_entrances + $res->acs_entrances, ); } public function unassign( string $acs_credential_id, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -1464,14 +1464,14 @@ public function unassign( $this->seam->request( "POST", "/acs/credentials/unassign", - json: (object) $request_payload + json: (object) $request_payload, ); } public function update( string $acs_credential_id, ?string $code = null, - ?string $ends_at = null + ?string $ends_at = null, ): void { $request_payload = []; @@ -1488,7 +1488,7 @@ public function update( $this->seam->request( "POST", "/acs/credentials/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -1505,7 +1505,7 @@ public function __construct(SeamClient $seam) public function encode_access_method( string $access_method_id, string $acs_encoder_id, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -1519,7 +1519,7 @@ public function encode_access_method( $res = $this->seam->request( "POST", "/acs/encoders/encode_access_method", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -1527,7 +1527,7 @@ public function encode_access_method( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -1536,7 +1536,7 @@ public function encode_access_method( public function encode_credential( string $acs_credential_id, string $acs_encoder_id, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -1550,7 +1550,7 @@ public function encode_credential( $res = $this->seam->request( "POST", "/acs/encoders/encode_credential", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -1558,7 +1558,7 @@ public function encode_credential( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -1575,7 +1575,7 @@ public function get(string $acs_encoder_id): AcsEncoder $res = $this->seam->request( "POST", "/acs/encoders/get", - json: (object) $request_payload + json: (object) $request_payload, ); return AcsEncoder::from_json($res->acs_encoder); @@ -1585,7 +1585,7 @@ public function list( ?string $acs_system_id = null, ?float $limit = null, ?array $acs_system_ids = null, - ?array $acs_encoder_ids = null + ?array $acs_encoder_ids = null, ): array { $request_payload = []; @@ -1605,18 +1605,18 @@ public function list( $res = $this->seam->request( "POST", "/acs/encoders/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AcsEncoder::from_json($r), - $res->acs_encoders + $res->acs_encoders, ); } public function scan_credential( string $acs_encoder_id, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -1627,7 +1627,7 @@ public function scan_credential( $res = $this->seam->request( "POST", "/acs/encoders/scan_credential", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -1635,7 +1635,7 @@ public function scan_credential( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -1654,7 +1654,7 @@ public function __construct(SeamClient $seam) public function next_credential_encode_will_fail( string $acs_encoder_id, ?string $error_code = null, - ?string $acs_credential_id = null + ?string $acs_credential_id = null, ): void { $request_payload = []; @@ -1671,13 +1671,13 @@ public function next_credential_encode_will_fail( $this->seam->request( "POST", "/acs/encoders/simulate/next_credential_encode_will_fail", - json: (object) $request_payload + json: (object) $request_payload, ); } public function next_credential_encode_will_succeed( string $acs_encoder_id, - ?string $scenario = null + ?string $scenario = null, ): void { $request_payload = []; @@ -1691,14 +1691,14 @@ public function next_credential_encode_will_succeed( $this->seam->request( "POST", "/acs/encoders/simulate/next_credential_encode_will_succeed", - json: (object) $request_payload + json: (object) $request_payload, ); } public function next_credential_scan_will_fail( string $acs_encoder_id, ?string $error_code = null, - ?string $acs_credential_id_on_seam = null + ?string $acs_credential_id_on_seam = null, ): void { $request_payload = []; @@ -1717,14 +1717,14 @@ public function next_credential_scan_will_fail( $this->seam->request( "POST", "/acs/encoders/simulate/next_credential_scan_will_fail", - json: (object) $request_payload + json: (object) $request_payload, ); } public function next_credential_scan_will_succeed( string $acs_encoder_id, ?string $acs_credential_id_on_seam = null, - ?string $scenario = null + ?string $scenario = null, ): void { $request_payload = []; @@ -1743,7 +1743,7 @@ public function next_credential_scan_will_succeed( $this->seam->request( "POST", "/acs/encoders/simulate/next_credential_scan_will_succeed", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -1768,7 +1768,7 @@ public function get(string $acs_entrance_id): AcsEntrance $res = $this->seam->request( "POST", "/acs/entrances/get", - json: (object) $request_payload + json: (object) $request_payload, ); return AcsEntrance::from_json($res->acs_entrance); @@ -1777,7 +1777,7 @@ public function get(string $acs_entrance_id): AcsEntrance public function grant_access( string $acs_entrance_id, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -1794,7 +1794,7 @@ public function grant_access( $this->seam->request( "POST", "/acs/entrances/grant_access", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -1804,7 +1804,7 @@ public function list( ?string $acs_credential_id = null, ?string $acs_system_id = null, ?string $location_id = null, - ?string $space_id = null + ?string $space_id = null, ): array { $request_payload = []; @@ -1830,18 +1830,18 @@ public function list( $res = $this->seam->request( "POST", "/acs/entrances/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AcsEntrance::from_json($r), - $res->acs_entrances + $res->acs_entrances, ); } public function list_credentials_with_access( string $acs_entrance_id, - ?array $include_if = null + ?array $include_if = null, ): array { $request_payload = []; @@ -1855,12 +1855,12 @@ public function list_credentials_with_access( $res = $this->seam->request( "POST", "/acs/entrances/list_credentials_with_access", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AcsCredential::from_json($r), - $res->acs_credentials + $res->acs_credentials, ); } } @@ -1885,7 +1885,7 @@ public function get(string $acs_system_id): AcsSystem $res = $this->seam->request( "POST", "/acs/systems/get", - json: (object) $request_payload + json: (object) $request_payload, ); return AcsSystem::from_json($res->acs_system); @@ -1902,14 +1902,14 @@ public function list(?string $connected_account_id = null): array $res = $this->seam->request( "POST", "/acs/systems/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map(fn($r) => AcsSystem::from_json($r), $res->acs_systems); } public function list_compatible_credential_manager_acs_systems( - string $acs_system_id + string $acs_system_id, ): array { $request_payload = []; @@ -1920,7 +1920,7 @@ public function list_compatible_credential_manager_acs_systems( $res = $this->seam->request( "POST", "/acs/systems/list_compatible_credential_manager_acs_systems", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map(fn($r) => AcsSystem::from_json($r), $res->acs_systems); @@ -1938,7 +1938,7 @@ public function __construct(SeamClient $seam) public function add_to_access_group( string $acs_access_group_id, - string $acs_user_id + string $acs_user_id, ): void { $request_payload = []; @@ -1952,7 +1952,7 @@ public function add_to_access_group( $this->seam->request( "POST", "/acs/users/add_to_access_group", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -1964,7 +1964,7 @@ public function create( ?string $email = null, ?string $email_address = null, ?string $phone_number = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): AcsUser { $request_payload = []; @@ -1996,7 +1996,7 @@ public function create( $res = $this->seam->request( "POST", "/acs/users/create", - json: (object) $request_payload + json: (object) $request_payload, ); return AcsUser::from_json($res->acs_user); @@ -2005,7 +2005,7 @@ public function create( public function delete( ?string $acs_system_id = null, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -2022,14 +2022,14 @@ public function delete( $this->seam->request( "POST", "/acs/users/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } public function get( ?string $acs_system_id = null, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): AcsUser { $request_payload = []; @@ -2046,7 +2046,7 @@ public function get( $res = $this->seam->request( "POST", "/acs/users/get", - json: (object) $request_payload + json: (object) $request_payload, ); return AcsUser::from_json($res->acs_user); @@ -2061,7 +2061,7 @@ public function list( ?string $user_identity_email_address = null, ?string $user_identity_id = null, ?string $user_identity_phone_number = null, - ?callable $on_response = null + ?callable $on_response = null, ): array { $request_payload = []; @@ -2097,7 +2097,7 @@ public function list( $res = $this->seam->request( "POST", "/acs/users/list", - json: (object) $request_payload + json: (object) $request_payload, ); if ($on_response !== null) { @@ -2110,7 +2110,7 @@ public function list( public function list_accessible_entrances( ?string $acs_system_id = null, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): array { $request_payload = []; @@ -2127,19 +2127,19 @@ public function list_accessible_entrances( $res = $this->seam->request( "POST", "/acs/users/list_accessible_entrances", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => AcsEntrance::from_json($r), - $res->acs_entrances + $res->acs_entrances, ); } public function remove_from_access_group( string $acs_access_group_id, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -2156,14 +2156,14 @@ public function remove_from_access_group( $this->seam->request( "POST", "/acs/users/remove_from_access_group", - json: (object) $request_payload + json: (object) $request_payload, ); } public function revoke_access_to_all_entrances( ?string $acs_system_id = null, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -2180,14 +2180,14 @@ public function revoke_access_to_all_entrances( $this->seam->request( "POST", "/acs/users/revoke_access_to_all_entrances", - json: (object) $request_payload + json: (object) $request_payload, ); } public function suspend( ?string $acs_system_id = null, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -2204,14 +2204,14 @@ public function suspend( $this->seam->request( "POST", "/acs/users/suspend", - json: (object) $request_payload + json: (object) $request_payload, ); } public function unsuspend( ?string $acs_system_id = null, ?string $acs_user_id = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -2228,7 +2228,7 @@ public function unsuspend( $this->seam->request( "POST", "/acs/users/unsuspend", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -2241,7 +2241,7 @@ public function update( ?string $full_name = null, ?string $hid_acs_system_id = null, ?string $phone_number = null, - ?string $user_identity_id = null + ?string $user_identity_id = null, ): void { $request_payload = []; @@ -2276,7 +2276,7 @@ public function update( $this->seam->request( "POST", "/acs/users/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -2301,7 +2301,7 @@ public function get(string $action_attempt_id): ActionAttempt $res = $this->seam->request( "POST", "/action_attempts/get", - json: (object) $request_payload + json: (object) $request_payload, ); return ActionAttempt::from_json($res->action_attempt); @@ -2318,17 +2318,17 @@ public function list(array $action_attempt_ids): array $res = $this->seam->request( "POST", "/action_attempts/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => ActionAttempt::from_json($r), - $res->action_attempts + $res->action_attempts, ); } public function poll_until_ready( string $action_attempt_id, - float $timeout = 20.0 + float $timeout = 20.0, ): ActionAttempt { $seam = $this->seam; $time_waiting = 0.0; @@ -2337,7 +2337,7 @@ public function poll_until_ready( while ($action_attempt->status == "pending") { $action_attempt = $seam->action_attempts->get( - $action_attempt->action_attempt_id + $action_attempt->action_attempt_id, ); if ($time_waiting > $timeout) { throw new ActionAttemptTimeoutError($action_attempt, $timeout); @@ -2371,7 +2371,7 @@ public function create( ?string $expires_at = null, ?string $user_identifier_key = null, ?string $user_identity_id = null, - ?array $user_identity_ids = null + ?array $user_identity_ids = null, ): ClientSession { $request_payload = []; @@ -2403,7 +2403,7 @@ public function create( $res = $this->seam->request( "POST", "/client_sessions/create", - json: (object) $request_payload + json: (object) $request_payload, ); return ClientSession::from_json($res->client_session); @@ -2420,13 +2420,13 @@ public function delete(string $client_session_id): void $this->seam->request( "POST", "/client_sessions/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } public function get( ?string $client_session_id = null, - ?string $user_identifier_key = null + ?string $user_identifier_key = null, ): ClientSession { $request_payload = []; @@ -2440,7 +2440,7 @@ public function get( $res = $this->seam->request( "POST", "/client_sessions/get", - json: (object) $request_payload + json: (object) $request_payload, ); return ClientSession::from_json($res->client_session); @@ -2452,7 +2452,7 @@ public function get_or_create( ?string $expires_at = null, ?string $user_identifier_key = null, ?string $user_identity_id = null, - ?array $user_identity_ids = null + ?array $user_identity_ids = null, ): ClientSession { $request_payload = []; @@ -2478,7 +2478,7 @@ public function get_or_create( $res = $this->seam->request( "POST", "/client_sessions/get_or_create", - json: (object) $request_payload + json: (object) $request_payload, ); return ClientSession::from_json($res->client_session); @@ -2490,7 +2490,7 @@ public function grant_access( ?array $connected_account_ids = null, ?string $user_identifier_key = null, ?string $user_identity_id = null, - ?array $user_identity_ids = null + ?array $user_identity_ids = null, ): void { $request_payload = []; @@ -2516,7 +2516,7 @@ public function grant_access( $this->seam->request( "POST", "/client_sessions/grant_access", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -2525,7 +2525,7 @@ public function list( ?string $connect_webview_id = null, ?string $user_identifier_key = null, ?string $user_identity_id = null, - ?bool $without_user_identifier_key = null + ?bool $without_user_identifier_key = null, ): array { $request_payload = []; @@ -2550,12 +2550,12 @@ public function list( $res = $this->seam->request( "POST", "/client_sessions/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => ClientSession::from_json($r), - $res->client_sessions + $res->client_sessions, ); } @@ -2570,7 +2570,7 @@ public function revoke(string $client_session_id): void $this->seam->request( "POST", "/client_sessions/revoke", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -2594,7 +2594,7 @@ public function create( ?string $customer_id = null, ?string $device_selection_mode = null, ?string $provider_category = null, - ?bool $wait_for_device_creation = null + ?bool $wait_for_device_creation = null, ): ConnectWebview { $request_payload = []; @@ -2638,7 +2638,7 @@ public function create( $res = $this->seam->request( "POST", "/connect_webviews/create", - json: (object) $request_payload + json: (object) $request_payload, ); return ConnectWebview::from_json($res->connect_webview); @@ -2655,7 +2655,7 @@ public function delete(string $connect_webview_id): void $this->seam->request( "POST", "/connect_webviews/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -2670,7 +2670,7 @@ public function get(string $connect_webview_id): ConnectWebview $res = $this->seam->request( "POST", "/connect_webviews/get", - json: (object) $request_payload + json: (object) $request_payload, ); return ConnectWebview::from_json($res->connect_webview); @@ -2682,7 +2682,7 @@ public function list( ?float $limit = null, ?string $page_cursor = null, ?string $user_identifier_key = null, - ?callable $on_response = null + ?callable $on_response = null, ): array { $request_payload = []; @@ -2705,7 +2705,7 @@ public function list( $res = $this->seam->request( "POST", "/connect_webviews/list", - json: (object) $request_payload + json: (object) $request_payload, ); if ($on_response !== null) { @@ -2714,7 +2714,7 @@ public function list( return array_map( fn($r) => ConnectWebview::from_json($r), - $res->connect_webviews + $res->connect_webviews, ); } } @@ -2730,7 +2730,7 @@ public function __construct(SeamClient $seam) public function delete( string $connected_account_id, - ?bool $sync = null + ?bool $sync = null, ): void { $request_payload = []; @@ -2744,13 +2744,13 @@ public function delete( $this->seam->request( "POST", "/connected_accounts/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } public function get( ?string $connected_account_id = null, - ?string $email = null + ?string $email = null, ): ConnectedAccount { $request_payload = []; @@ -2764,7 +2764,7 @@ public function get( $res = $this->seam->request( "POST", "/connected_accounts/get", - json: (object) $request_payload + json: (object) $request_payload, ); return ConnectedAccount::from_json($res->connected_account); @@ -2776,7 +2776,7 @@ public function list( mixed $limit = null, ?string $page_cursor = null, ?string $user_identifier_key = null, - ?callable $on_response = null + ?callable $on_response = null, ): array { $request_payload = []; @@ -2799,7 +2799,7 @@ public function list( $res = $this->seam->request( "POST", "/connected_accounts/list", - json: (object) $request_payload + json: (object) $request_payload, ); if ($on_response !== null) { @@ -2808,7 +2808,7 @@ public function list( return array_map( fn($r) => ConnectedAccount::from_json($r), - $res->connected_accounts + $res->connected_accounts, ); } @@ -2823,14 +2823,14 @@ public function sync(string $connected_account_id): void $this->seam->request( "POST", "/connected_accounts/sync", - json: (object) $request_payload + json: (object) $request_payload, ); } public function update( string $connected_account_id, ?bool $automatically_manage_new_devices = null, - mixed $custom_metadata = null + mixed $custom_metadata = null, ): void { $request_payload = []; @@ -2849,7 +2849,7 @@ public function update( $this->seam->request( "POST", "/connected_accounts/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -2866,7 +2866,7 @@ public function __construct(SeamClient $seam) public function create_portal( mixed $features = null, ?bool $is_embedded = null, - mixed $customer_data = null + mixed $customer_data = null, ): MagicLink { $request_payload = []; @@ -2883,7 +2883,7 @@ public function create_portal( $res = $this->seam->request( "POST", "/customers/create_portal", - json: (object) $request_payload + json: (object) $request_payload, ); return MagicLink::from_json($res->magic_link); @@ -2907,7 +2907,7 @@ public function push_data( ?array $tenants = null, ?array $units = null, ?array $user_identities = null, - ?array $users = null + ?array $users = null, ): void { $request_payload = []; @@ -2969,7 +2969,7 @@ public function push_data( $this->seam->request( "POST", "/customers/push_data", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -3000,7 +3000,7 @@ public function get(?string $device_id = null, ?string $name = null): Device $res = $this->seam->request( "POST", "/devices/get", - json: (object) $request_payload + json: (object) $request_payload, ); return Device::from_json($res->device); @@ -3024,7 +3024,7 @@ public function list( ?string $space_id = null, ?string $unstable_location_id = null, ?string $user_identifier_key = null, - ?callable $on_response = null + ?callable $on_response = null, ): array { $request_payload = []; @@ -3083,7 +3083,7 @@ public function list( $res = $this->seam->request( "POST", "/devices/list", - json: (object) $request_payload + json: (object) $request_payload, ); if ($on_response !== null) { @@ -3094,7 +3094,7 @@ public function list( } public function list_device_providers( - ?string $provider_category = null + ?string $provider_category = null, ): array { $request_payload = []; @@ -3105,12 +3105,12 @@ public function list_device_providers( $res = $this->seam->request( "POST", "/devices/list_device_providers", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => DeviceProvider::from_json($r), - $res->device_providers + $res->device_providers, ); } @@ -3119,7 +3119,7 @@ public function update( mixed $custom_metadata = null, ?bool $is_managed = null, ?string $name = null, - mixed $properties = null + mixed $properties = null, ): void { $request_payload = []; @@ -3142,7 +3142,7 @@ public function update( $this->seam->request( "POST", "/devices/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -3167,7 +3167,7 @@ public function connect(string $device_id): void $this->seam->request( "POST", "/devices/simulate/connect", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -3182,7 +3182,7 @@ public function disconnect(string $device_id): void $this->seam->request( "POST", "/devices/simulate/disconnect", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -3197,7 +3197,7 @@ public function remove(string $device_id): void $this->seam->request( "POST", "/devices/simulate/remove", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -3213,7 +3213,7 @@ public function __construct(SeamClient $seam) public function get( ?string $device_id = null, - ?string $name = null + ?string $name = null, ): UnmanagedDevice { $request_payload = []; @@ -3227,7 +3227,7 @@ public function get( $res = $this->seam->request( "POST", "/devices/unmanaged/get", - json: (object) $request_payload + json: (object) $request_payload, ); return UnmanagedDevice::from_json($res->device); @@ -3251,7 +3251,7 @@ public function list( ?string $space_id = null, ?string $unstable_location_id = null, ?string $user_identifier_key = null, - ?callable $on_response = null + ?callable $on_response = null, ): array { $request_payload = []; @@ -3310,7 +3310,7 @@ public function list( $res = $this->seam->request( "POST", "/devices/unmanaged/list", - json: (object) $request_payload + json: (object) $request_payload, ); if ($on_response !== null) { @@ -3319,7 +3319,7 @@ public function list( return array_map( fn($r) => UnmanagedDevice::from_json($r), - $res->devices + $res->devices, ); } @@ -3337,7 +3337,7 @@ public function update(string $device_id, bool $is_managed): void $this->seam->request( "POST", "/devices/unmanaged/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -3354,7 +3354,7 @@ public function __construct(SeamClient $seam) public function get( ?string $device_id = null, ?string $event_id = null, - ?string $event_type = null + ?string $event_type = null, ): Event { $request_payload = []; @@ -3371,7 +3371,7 @@ public function get( $res = $this->seam->request( "POST", "/events/get", - json: (object) $request_payload + json: (object) $request_payload, ); return Event::from_json($res->event); @@ -3393,7 +3393,7 @@ public function list( ?array $event_types = null, ?float $limit = null, ?string $since = null, - ?float $unstable_offset = null + ?float $unstable_offset = null, ): array { $request_payload = []; @@ -3449,7 +3449,7 @@ public function list( $res = $this->seam->request( "POST", "/events/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map(fn($r) => Event::from_json($r), $res->events); @@ -3479,7 +3479,7 @@ public function get(?string $device_id = null, ?string $name = null): Device $res = $this->seam->request( "POST", "/locks/get", - json: (object) $request_payload + json: (object) $request_payload, ); return Device::from_json($res->device); @@ -3503,7 +3503,7 @@ public function list( ?string $space_id = null, ?string $unstable_location_id = null, ?string $user_identifier_key = null, - ?callable $on_response = null + ?callable $on_response = null, ): array { $request_payload = []; @@ -3562,7 +3562,7 @@ public function list( $res = $this->seam->request( "POST", "/locks/list", - json: (object) $request_payload + json: (object) $request_payload, ); if ($on_response !== null) { @@ -3575,7 +3575,7 @@ public function list( public function lock_door( string $device_id, ?bool $sync = null, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -3589,7 +3589,7 @@ public function lock_door( $res = $this->seam->request( "POST", "/locks/lock_door", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -3597,7 +3597,7 @@ public function lock_door( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -3606,7 +3606,7 @@ public function lock_door( public function unlock_door( string $device_id, ?bool $sync = null, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -3620,7 +3620,7 @@ public function unlock_door( $res = $this->seam->request( "POST", "/locks/unlock_door", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -3628,7 +3628,7 @@ public function unlock_door( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -3665,7 +3665,7 @@ public function list( ?string $space_id = null, ?string $unstable_location_id = null, ?string $user_identifier_key = null, - ?callable $on_response = null + ?callable $on_response = null, ): array { $request_payload = []; @@ -3724,7 +3724,7 @@ public function list( $res = $this->seam->request( "POST", "/noise_sensors/list", - json: (object) $request_payload + json: (object) $request_payload, ); if ($on_response !== null) { @@ -3751,7 +3751,7 @@ public function create( ?string $name = null, ?float $noise_threshold_decibels = null, ?float $noise_threshold_nrs = null, - ?bool $sync = null + ?bool $sync = null, ): NoiseThreshold { $request_payload = []; @@ -3782,7 +3782,7 @@ public function create( $res = $this->seam->request( "POST", "/noise_sensors/noise_thresholds/create", - json: (object) $request_payload + json: (object) $request_payload, ); return NoiseThreshold::from_json($res->noise_threshold); @@ -3791,7 +3791,7 @@ public function create( public function delete( string $device_id, string $noise_threshold_id, - ?bool $sync = null + ?bool $sync = null, ): void { $request_payload = []; @@ -3808,7 +3808,7 @@ public function delete( $this->seam->request( "POST", "/noise_sensors/noise_thresholds/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -3823,7 +3823,7 @@ public function get(string $noise_threshold_id): NoiseThreshold $res = $this->seam->request( "POST", "/noise_sensors/noise_thresholds/get", - json: (object) $request_payload + json: (object) $request_payload, ); return NoiseThreshold::from_json($res->noise_threshold); @@ -3843,12 +3843,12 @@ public function list(string $device_id, ?bool $is_programmed = null): array $res = $this->seam->request( "POST", "/noise_sensors/noise_thresholds/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => NoiseThreshold::from_json($r), - $res->noise_thresholds + $res->noise_thresholds, ); } @@ -3860,7 +3860,7 @@ public function update( ?float $noise_threshold_decibels = null, ?float $noise_threshold_nrs = null, ?string $starts_daily_at = null, - ?bool $sync = null + ?bool $sync = null, ): void { $request_payload = []; @@ -3894,7 +3894,7 @@ public function update( $this->seam->request( "POST", "/noise_sensors/noise_thresholds/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -3919,7 +3919,7 @@ public function trigger_noise_threshold(string $device_id): void $this->seam->request( "POST", "/noise_sensors/simulate/trigger_noise_threshold", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -3945,7 +3945,7 @@ public function deactivate(string $device_id): void $this->seam->request( "POST", "/phones/deactivate", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -3960,7 +3960,7 @@ public function get(string $device_id): Phone $res = $this->seam->request( "POST", "/phones/get", - json: (object) $request_payload + json: (object) $request_payload, ); return Phone::from_json($res->phone); @@ -3968,7 +3968,7 @@ public function get(string $device_id): Phone public function list( ?string $acs_credential_id = null, - ?string $owner_user_identity_id = null + ?string $owner_user_identity_id = null, ): array { $request_payload = []; @@ -3984,7 +3984,7 @@ public function list( $res = $this->seam->request( "POST", "/phones/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map(fn($r) => Phone::from_json($r), $res->phones); @@ -4004,7 +4004,7 @@ public function create_sandbox_phone( string $user_identity_id, mixed $assa_abloy_metadata = null, ?string $custom_sdk_installation_id = null, - mixed $phone_metadata = null + mixed $phone_metadata = null, ): Phone { $request_payload = []; @@ -4026,7 +4026,7 @@ public function create_sandbox_phone( $res = $this->seam->request( "POST", "/phones/simulate/create_sandbox_phone", - json: (object) $request_payload + json: (object) $request_payload, ); return Phone::from_json($res->phone); @@ -4044,7 +4044,7 @@ public function __construct(SeamClient $seam) public function add_acs_entrances( array $acs_entrance_ids, - string $space_id + string $space_id, ): void { $request_payload = []; @@ -4058,7 +4058,7 @@ public function add_acs_entrances( $this->seam->request( "POST", "/spaces/add_acs_entrances", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -4076,14 +4076,14 @@ public function add_devices(array $device_ids, string $space_id): void $this->seam->request( "POST", "/spaces/add_devices", - json: (object) $request_payload + json: (object) $request_payload, ); } public function create( string $name, ?array $acs_entrance_ids = null, - ?array $device_ids = null + ?array $device_ids = null, ): Space { $request_payload = []; @@ -4100,7 +4100,7 @@ public function create( $res = $this->seam->request( "POST", "/spaces/create", - json: (object) $request_payload + json: (object) $request_payload, ); return Space::from_json($res->space); @@ -4117,7 +4117,7 @@ public function delete(string $space_id): void $this->seam->request( "POST", "/spaces/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -4132,7 +4132,7 @@ public function get(string $space_id): Space $res = $this->seam->request( "POST", "/spaces/get", - json: (object) $request_payload + json: (object) $request_payload, ); return Space::from_json($res->space); @@ -4147,7 +4147,7 @@ public function list(): array public function remove_acs_entrances( array $acs_entrance_ids, - string $space_id + string $space_id, ): void { $request_payload = []; @@ -4161,7 +4161,7 @@ public function remove_acs_entrances( $this->seam->request( "POST", "/spaces/remove_acs_entrances", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -4179,7 +4179,7 @@ public function remove_devices(array $device_ids, string $space_id): void $this->seam->request( "POST", "/spaces/remove_devices", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -4197,7 +4197,7 @@ public function update(string $space_id, ?string $name = null): Space $res = $this->seam->request( "POST", "/spaces/update", - json: (object) $request_payload + json: (object) $request_payload, ); return Space::from_json($res->space); @@ -4221,7 +4221,7 @@ public function __construct(SeamClient $seam) public function activate_climate_preset( string $climate_preset_key, string $device_id, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -4235,7 +4235,7 @@ public function activate_climate_preset( $res = $this->seam->request( "POST", "/thermostats/activate_climate_preset", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -4243,7 +4243,7 @@ public function activate_climate_preset( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -4254,7 +4254,7 @@ public function cool( ?float $cooling_set_point_celsius = null, ?float $cooling_set_point_fahrenheit = null, ?bool $sync = null, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -4278,7 +4278,7 @@ public function cool( $res = $this->seam->request( "POST", "/thermostats/cool", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -4286,7 +4286,7 @@ public function cool( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -4302,7 +4302,7 @@ public function create_climate_preset( ?float $heating_set_point_fahrenheit = null, ?string $hvac_mode_setting = null, ?bool $manual_override_allowed = null, - ?string $name = null + ?string $name = null, ): void { $request_payload = []; @@ -4350,13 +4350,13 @@ public function create_climate_preset( $this->seam->request( "POST", "/thermostats/create_climate_preset", - json: (object) $request_payload + json: (object) $request_payload, ); } public function delete_climate_preset( string $climate_preset_key, - string $device_id + string $device_id, ): void { $request_payload = []; @@ -4370,7 +4370,7 @@ public function delete_climate_preset( $this->seam->request( "POST", "/thermostats/delete_climate_preset", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -4379,7 +4379,7 @@ public function heat( ?float $heating_set_point_celsius = null, ?float $heating_set_point_fahrenheit = null, ?bool $sync = null, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -4403,7 +4403,7 @@ public function heat( $res = $this->seam->request( "POST", "/thermostats/heat", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -4411,7 +4411,7 @@ public function heat( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -4424,7 +4424,7 @@ public function heat_cool( ?float $heating_set_point_celsius = null, ?float $heating_set_point_fahrenheit = null, ?bool $sync = null, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -4458,7 +4458,7 @@ public function heat_cool( $res = $this->seam->request( "POST", "/thermostats/heat_cool", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -4466,7 +4466,7 @@ public function heat_cool( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -4490,7 +4490,7 @@ public function list( ?string $space_id = null, ?string $unstable_location_id = null, ?string $user_identifier_key = null, - ?callable $on_response = null + ?callable $on_response = null, ): array { $request_payload = []; @@ -4549,7 +4549,7 @@ public function list( $res = $this->seam->request( "POST", "/thermostats/list", - json: (object) $request_payload + json: (object) $request_payload, ); if ($on_response !== null) { @@ -4562,7 +4562,7 @@ public function list( public function off( string $device_id, ?bool $sync = null, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -4576,7 +4576,7 @@ public function off( $res = $this->seam->request( "POST", "/thermostats/off", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -4584,7 +4584,7 @@ public function off( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -4592,7 +4592,7 @@ public function off( public function set_fallback_climate_preset( string $climate_preset_key, - string $device_id + string $device_id, ): void { $request_payload = []; @@ -4606,7 +4606,7 @@ public function set_fallback_climate_preset( $this->seam->request( "POST", "/thermostats/set_fallback_climate_preset", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -4615,7 +4615,7 @@ public function set_fan_mode( ?string $fan_mode = null, ?string $fan_mode_setting = null, ?bool $sync = null, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -4635,7 +4635,7 @@ public function set_fan_mode( $res = $this->seam->request( "POST", "/thermostats/set_fan_mode", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -4643,7 +4643,7 @@ public function set_fan_mode( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -4656,7 +4656,7 @@ public function set_hvac_mode( ?float $cooling_set_point_fahrenheit = null, ?float $heating_set_point_celsius = null, ?float $heating_set_point_fahrenheit = null, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -4690,7 +4690,7 @@ public function set_hvac_mode( $res = $this->seam->request( "POST", "/thermostats/set_hvac_mode", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -4698,7 +4698,7 @@ public function set_hvac_mode( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -4709,7 +4709,7 @@ public function set_temperature_threshold( ?float $lower_limit_celsius = null, ?float $lower_limit_fahrenheit = null, ?float $upper_limit_celsius = null, - ?float $upper_limit_fahrenheit = null + ?float $upper_limit_fahrenheit = null, ): void { $request_payload = []; @@ -4736,7 +4736,7 @@ public function set_temperature_threshold( $this->seam->request( "POST", "/thermostats/set_temperature_threshold", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -4750,7 +4750,7 @@ public function update_climate_preset( ?float $heating_set_point_fahrenheit = null, ?string $hvac_mode_setting = null, ?bool $manual_override_allowed = null, - ?string $name = null + ?string $name = null, ): void { $request_payload = []; @@ -4798,7 +4798,7 @@ public function update_climate_preset( $this->seam->request( "POST", "/thermostats/update_climate_preset", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -4811,7 +4811,7 @@ public function update_weekly_program( ?string $thursday_program_id = null, ?string $tuesday_program_id = null, ?string $wednesday_program_id = null, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -4843,7 +4843,7 @@ public function update_weekly_program( $res = $this->seam->request( "POST", "/thermostats/update_weekly_program", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -4851,7 +4851,7 @@ public function update_weekly_program( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -4870,7 +4870,7 @@ public function __construct(SeamClient $seam) public function create( string $device_id, string $name, - array $periods + array $periods, ): ThermostatDailyProgram { $request_payload = []; @@ -4887,11 +4887,11 @@ public function create( $res = $this->seam->request( "POST", "/thermostats/daily_programs/create", - json: (object) $request_payload + json: (object) $request_payload, ); return ThermostatDailyProgram::from_json( - $res->thermostat_daily_program + $res->thermostat_daily_program, ); } @@ -4908,7 +4908,7 @@ public function delete(string $thermostat_daily_program_id): void $this->seam->request( "POST", "/thermostats/daily_programs/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -4916,7 +4916,7 @@ public function update( string $name, array $periods, string $thermostat_daily_program_id, - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $request_payload = []; @@ -4935,7 +4935,7 @@ public function update( $res = $this->seam->request( "POST", "/thermostats/daily_programs/update", - json: (object) $request_payload + json: (object) $request_payload, ); if (!$wait_for_action_attempt) { @@ -4943,7 +4943,7 @@ public function update( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; @@ -4966,7 +4966,7 @@ public function create( string $starts_at, ?bool $is_override_allowed = null, mixed $max_override_period_minutes = null, - ?string $name = null + ?string $name = null, ): ThermostatSchedule { $request_payload = []; @@ -4997,7 +4997,7 @@ public function create( $res = $this->seam->request( "POST", "/thermostats/schedules/create", - json: (object) $request_payload + json: (object) $request_payload, ); return ThermostatSchedule::from_json($res->thermostat_schedule); @@ -5016,7 +5016,7 @@ public function delete(string $thermostat_schedule_id): void $this->seam->request( "POST", "/thermostats/schedules/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -5033,7 +5033,7 @@ public function get(string $thermostat_schedule_id): ThermostatSchedule $res = $this->seam->request( "POST", "/thermostats/schedules/get", - json: (object) $request_payload + json: (object) $request_payload, ); return ThermostatSchedule::from_json($res->thermostat_schedule); @@ -5041,7 +5041,7 @@ public function get(string $thermostat_schedule_id): ThermostatSchedule public function list( string $device_id, - ?string $user_identifier_key = null + ?string $user_identifier_key = null, ): array { $request_payload = []; @@ -5055,12 +5055,12 @@ public function list( $res = $this->seam->request( "POST", "/thermostats/schedules/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => ThermostatSchedule::from_json($r), - $res->thermostat_schedules + $res->thermostat_schedules, ); } @@ -5071,7 +5071,7 @@ public function update( ?bool $is_override_allowed = null, mixed $max_override_period_minutes = null, ?string $name = null, - ?string $starts_at = null + ?string $starts_at = null, ): void { $request_payload = []; @@ -5104,7 +5104,7 @@ public function update( $this->seam->request( "POST", "/thermostats/schedules/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -5124,7 +5124,7 @@ public function hvac_mode_adjusted( ?float $cooling_set_point_celsius = null, ?float $cooling_set_point_fahrenheit = null, ?float $heating_set_point_celsius = null, - ?float $heating_set_point_fahrenheit = null + ?float $heating_set_point_fahrenheit = null, ): void { $request_payload = []; @@ -5158,14 +5158,14 @@ public function hvac_mode_adjusted( $this->seam->request( "POST", "/thermostats/simulate/hvac_mode_adjusted", - json: (object) $request_payload + json: (object) $request_payload, ); } public function temperature_reached( string $device_id, ?float $temperature_celsius = null, - ?float $temperature_fahrenheit = null + ?float $temperature_fahrenheit = null, ): void { $request_payload = []; @@ -5184,7 +5184,7 @@ public function temperature_reached( $this->seam->request( "POST", "/thermostats/simulate/temperature_reached", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -5197,13 +5197,13 @@ public function __construct(SeamClient $seam) { $this->seam = $seam; $this->enrollment_automations = new UserIdentitiesEnrollmentAutomationsClient( - $seam + $seam, ); } public function add_acs_user( string $acs_user_id, - string $user_identity_id + string $user_identity_id, ): void { $request_payload = []; @@ -5217,7 +5217,7 @@ public function add_acs_user( $this->seam->request( "POST", "/user_identities/add_acs_user", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -5226,7 +5226,7 @@ public function create( ?string $email_address = null, ?string $full_name = null, ?string $phone_number = null, - ?string $user_identity_key = null + ?string $user_identity_key = null, ): UserIdentity { $request_payload = []; @@ -5249,7 +5249,7 @@ public function create( $res = $this->seam->request( "POST", "/user_identities/create", - json: (object) $request_payload + json: (object) $request_payload, ); return UserIdentity::from_json($res->user_identity); @@ -5266,13 +5266,13 @@ public function delete(string $user_identity_id): void $this->seam->request( "POST", "/user_identities/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } public function generate_instant_key( string $user_identity_id, - ?float $max_use_count = null + ?float $max_use_count = null, ): InstantKey { $request_payload = []; @@ -5286,7 +5286,7 @@ public function generate_instant_key( $res = $this->seam->request( "POST", "/user_identities/generate_instant_key", - json: (object) $request_payload + json: (object) $request_payload, ); return InstantKey::from_json($res->instant_key); @@ -5294,7 +5294,7 @@ public function generate_instant_key( public function get( ?string $user_identity_id = null, - ?string $user_identity_key = null + ?string $user_identity_key = null, ): UserIdentity { $request_payload = []; @@ -5308,7 +5308,7 @@ public function get( $res = $this->seam->request( "POST", "/user_identities/get", - json: (object) $request_payload + json: (object) $request_payload, ); return UserIdentity::from_json($res->user_identity); @@ -5316,7 +5316,7 @@ public function get( public function grant_access_to_device( string $device_id, - string $user_identity_id + string $user_identity_id, ): void { $request_payload = []; @@ -5330,12 +5330,12 @@ public function grant_access_to_device( $this->seam->request( "POST", "/user_identities/grant_access_to_device", - json: (object) $request_payload + json: (object) $request_payload, ); } public function list( - ?string $credential_manager_acs_system_id = null + ?string $credential_manager_acs_system_id = null, ): array { $request_payload = []; @@ -5348,12 +5348,12 @@ public function list( $res = $this->seam->request( "POST", "/user_identities/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => UserIdentity::from_json($r), - $res->user_identities + $res->user_identities, ); } @@ -5368,7 +5368,7 @@ public function list_accessible_devices(string $user_identity_id): array $res = $this->seam->request( "POST", "/user_identities/list_accessible_devices", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map(fn($r) => Device::from_json($r), $res->devices); @@ -5385,7 +5385,7 @@ public function list_acs_systems(string $user_identity_id): array $res = $this->seam->request( "POST", "/user_identities/list_acs_systems", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map(fn($r) => AcsSystem::from_json($r), $res->acs_systems); @@ -5402,7 +5402,7 @@ public function list_acs_users(string $user_identity_id): array $res = $this->seam->request( "POST", "/user_identities/list_acs_users", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map(fn($r) => AcsUser::from_json($r), $res->acs_users); @@ -5410,7 +5410,7 @@ public function list_acs_users(string $user_identity_id): array public function remove_acs_user( string $acs_user_id, - string $user_identity_id + string $user_identity_id, ): void { $request_payload = []; @@ -5424,13 +5424,13 @@ public function remove_acs_user( $this->seam->request( "POST", "/user_identities/remove_acs_user", - json: (object) $request_payload + json: (object) $request_payload, ); } public function revoke_access_to_device( string $device_id, - string $user_identity_id + string $user_identity_id, ): void { $request_payload = []; @@ -5444,7 +5444,7 @@ public function revoke_access_to_device( $this->seam->request( "POST", "/user_identities/revoke_access_to_device", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -5453,7 +5453,7 @@ public function update( ?string $email_address = null, ?string $full_name = null, ?string $phone_number = null, - ?string $user_identity_key = null + ?string $user_identity_key = null, ): void { $request_payload = []; @@ -5476,7 +5476,7 @@ public function update( $this->seam->request( "POST", "/user_identities/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -5503,7 +5503,7 @@ public function delete(string $enrollment_automation_id): void $this->seam->request( "POST", "/user_identities/enrollment_automations/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -5520,7 +5520,7 @@ public function get(string $enrollment_automation_id): EnrollmentAutomation $res = $this->seam->request( "POST", "/user_identities/enrollment_automations/get", - json: (object) $request_payload + json: (object) $request_payload, ); return EnrollmentAutomation::from_json($res->enrollment_automation); @@ -5531,7 +5531,7 @@ public function launch( string $user_identity_id, ?string $acs_credential_pool_id = null, ?bool $create_credential_manager_user = null, - ?string $credential_manager_acs_user_id = null + ?string $credential_manager_acs_user_id = null, ): EnrollmentAutomation { $request_payload = []; @@ -5562,7 +5562,7 @@ public function launch( $res = $this->seam->request( "POST", "/user_identities/enrollment_automations/launch", - json: (object) $request_payload + json: (object) $request_payload, ); return EnrollmentAutomation::from_json($res->enrollment_automation); @@ -5579,12 +5579,12 @@ public function list(string $user_identity_id): array $res = $this->seam->request( "POST", "/user_identities/enrollment_automations/list", - json: (object) $request_payload + json: (object) $request_payload, ); return array_map( fn($r) => EnrollmentAutomation::from_json($r), - $res->enrollment_automations + $res->enrollment_automations, ); } } @@ -5612,7 +5612,7 @@ public function create(string $url, ?array $event_types = null): Webhook $res = $this->seam->request( "POST", "/webhooks/create", - json: (object) $request_payload + json: (object) $request_payload, ); return Webhook::from_json($res->webhook); @@ -5629,7 +5629,7 @@ public function delete(string $webhook_id): void $this->seam->request( "POST", "/webhooks/delete", - json: (object) $request_payload + json: (object) $request_payload, ); } @@ -5644,7 +5644,7 @@ public function get(string $webhook_id): Webhook $res = $this->seam->request( "POST", "/webhooks/get", - json: (object) $request_payload + json: (object) $request_payload, ); return Webhook::from_json($res->webhook); @@ -5671,7 +5671,7 @@ public function update(array $event_types, string $webhook_id): void $this->seam->request( "POST", "/webhooks/update", - json: (object) $request_payload + json: (object) $request_payload, ); } } @@ -5694,7 +5694,7 @@ public function create( ?string $webview_logo_shape = null, ?string $webview_primary_button_color = null, ?string $webview_primary_button_text_color = null, - ?string $webview_success_message = null + ?string $webview_success_message = null, ): Workspace { $request_payload = []; @@ -5737,7 +5737,7 @@ public function create( $res = $this->seam->request( "POST", "/workspaces/create", - json: (object) $request_payload + json: (object) $request_payload, ); return Workspace::from_json($res->workspace); @@ -5758,7 +5758,7 @@ public function list(): array } public function reset_sandbox( - bool $wait_for_action_attempt = true + bool $wait_for_action_attempt = true, ): ActionAttempt { $res = $this->seam->request("POST", "/workspaces/reset_sandbox"); @@ -5767,7 +5767,7 @@ public function reset_sandbox( } $action_attempt = $this->seam->action_attempts->poll_until_ready( - $res->action_attempt->action_attempt_id + $res->action_attempt->action_attempt_id, ); return $action_attempt; diff --git a/src/Utils/PackageVersion.php b/src/Utils/PackageVersion.php index f5407aab..0dc8a6a3 100644 --- a/src/Utils/PackageVersion.php +++ b/src/Utils/PackageVersion.php @@ -12,14 +12,14 @@ public static function get() if (!file_exists($filePath)) { throw new PackageVersionException( - "Can't get package version. File package.json does not exist." + "Can't get package version. File package.json does not exist.", ); } $content = file_get_contents($filePath); if ($content === false) { throw new PackageVersionException( - "Unable to read package.json file to get package version." + "Unable to read package.json file to get package version.", ); } @@ -27,13 +27,13 @@ public static function get() if (json_last_error() !== JSON_ERROR_NONE) { throw new PackageVersionException( "JSON decode error occurred when decoding package.json: " . - json_last_error_msg() + json_last_error_msg(), ); } if (!isset($json["version"])) { throw new PackageVersionException( - "Version not set in package.json" + "Version not set in package.json", ); } diff --git a/tests/Fixture.php b/tests/Fixture.php index 4d9efd54..c2bf3ebb 100644 --- a/tests/Fixture.php +++ b/tests/Fixture.php @@ -11,7 +11,7 @@ public static function getTestServer() $random_string = substr( str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"), 0, - 10 + 10, ); echo $random_string; $api_url = "https://{$random_string}.fakeseamconnect.seam.vc"; diff --git a/tests/HttpErrorTest.php b/tests/HttpErrorTest.php index 184aba3f..ea7eeeb4 100644 --- a/tests/HttpErrorTest.php +++ b/tests/HttpErrorTest.php @@ -17,7 +17,7 @@ public function testInvalidInputError(): void "/devices/list", json: [ "device_ids" => 1234, - ] + ], ); $this->fail("Expected InvalidInputError"); } catch (\Seam\HttpInvalidInputError $e) { @@ -26,7 +26,7 @@ public function testInvalidInputError(): void $this->assertEquals("invalid_input", $e->getErrorCode()); $this->assertEquals( ["Expected array, received number"], - $e->getValidationErrorMessages("device_ids") + $e->getValidationErrorMessages("device_ids"), ); } } @@ -36,7 +36,7 @@ public function testUnauthorizedError(): void $test_server = Fixture::getTestServer(); $seam = new \Seam\SeamClient( "invalid_api_key", - $test_server->client->getConfig("base_uri")->__toString() + $test_server->client->getConfig("base_uri")->__toString(), ); try { @@ -67,7 +67,7 @@ public function testNonSeamError(): void $seam = new \Seam\SeamClient( "seam_apikey1_token", - "https://nonexistent.example.com" + "https://nonexistent.example.com", ); try { @@ -76,11 +76,11 @@ public function testNonSeamError(): void } catch (\GuzzleHttp\Exception\ConnectException $e) { $this->assertInstanceOf( \GuzzleHttp\Exception\ConnectException::class, - $e + $e, ); $this->assertStringContainsString( "Could not resolve host", - $e->getMessage() + $e->getMessage(), ); } } diff --git a/tests/PaginatorTest.php b/tests/PaginatorTest.php index 7866deba..1de637dc 100644 --- a/tests/PaginatorTest.php +++ b/tests/PaginatorTest.php @@ -14,7 +14,7 @@ public function testPaginatorFirstPage(): void $pages = $seam->createPaginator( fn($params) => $seam->connected_accounts->list(...$params), - ["limit" => 2] + ["limit" => 2], ); [$connectedAccounts, $pagination] = $pages->firstPage(); @@ -30,7 +30,7 @@ public function testPaginatorNextPage(): void $pages = $seam->createPaginator( fn($params) => $seam->connected_accounts->list(...$params), - ["limit" => 2] + ["limit" => 2], ); [$connectedAccounts, $pagination] = $pages->firstPage(); @@ -38,7 +38,7 @@ public function testPaginatorNextPage(): void $this->assertTrue($pagination->has_next_page); [$moreConnectedAccounts] = $pages->nextPage( - $pagination->next_page_cursor + $pagination->next_page_cursor, ); $this->assertTrue(count($moreConnectedAccounts) == 1); @@ -52,7 +52,7 @@ public function testPaginatorFlattenToArray(): void $pages = $seam->createPaginator( fn($params) => $seam->connected_accounts->list(...$params), - ["limit" => 1] + ["limit" => 1], ); $devices = $pages->flattenToArray(); @@ -67,7 +67,7 @@ public function testPaginatorFlatten(): void $allConnectedAccounts = $seam->connected_accounts->list(); $pages = $seam->createPaginator( fn($params) => $seam->connected_accounts->list(...$params), - ["limit" => 1] + ["limit" => 1], ); $connectedAccounts = []; @@ -76,7 +76,7 @@ public function testPaginatorFlatten(): void } $this->assertTrue(count($connectedAccounts) > 1); $this->assertTrue( - count($connectedAccounts) == count($allConnectedAccounts) + count($connectedAccounts) == count($allConnectedAccounts), ); } }