diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e8d4d7..8727bf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 18.0.0 + +* Fix duplicate methods issue (e.g., `updateMFA` and `updateMfa`) causing build and runtime errors +* Add support for `getScreenshot` method to `Avatars` service +* Add `Output`, `Theme` and `Timezone` enums + ## 17.5.0 * Add `total` parameter to list queries allowing skipping counting rows in a table for improved performance diff --git a/composer.json b/composer.json index 6dea965..83f2bc0 100644 --- a/composer.json +++ b/composer.json @@ -7,6 +7,9 @@ "url": "https://appwrite.io/support", "email": "team@appwrite.io" }, + "scripts": { + "test": "vendor/bin/phpunit" + }, "autoload": { "psr-4": { "Appwrite\\": "src/Appwrite" @@ -19,7 +22,7 @@ }, "require-dev": { "phpunit/phpunit": "^10", - "mockery/mockery": "^1.6.6" + "mockery/mockery": "^1.6.12" }, "minimum-stability": "dev" } \ No newline at end of file diff --git a/docs/avatars.md b/docs/avatars.md index 1517dc7..11722ab 100644 --- a/docs/avatars.md +++ b/docs/avatars.md @@ -128,3 +128,39 @@ GET https://cloud.appwrite.io/v1/avatars/qr | margin | integer | Margin from edge. Pass an integer between 0 to 10. Defaults to 1. | 1 | | download | boolean | Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0. | | + +```http request +GET https://cloud.appwrite.io/v1/avatars/screenshots +``` + +** Use this endpoint to capture a screenshot of any website URL. This endpoint uses a headless browser to render the webpage and capture it as an image. + +You can configure the browser viewport size, theme, user agent, geolocation, permissions, and more. Capture either just the viewport or the full page scroll. + +When width and height are specified, the image is resized accordingly. If both dimensions are 0, the API provides an image at original size. If dimensions are not specified, the default viewport size is 1280x720px. ** + +### Parameters + +| Field Name | Type | Description | Default | +| --- | --- | --- | --- | +| url | string | **Required** Website URL which you want to capture. | | +| headers | object | HTTP headers to send with the browser request. Defaults to empty. | {} | +| viewportWidth | integer | Browser viewport width. Pass an integer between 1 to 1920. Defaults to 1280. | 1280 | +| viewportHeight | integer | Browser viewport height. Pass an integer between 1 to 1080. Defaults to 720. | 720 | +| scale | number | Browser scale factor. Pass a number between 0.1 to 3. Defaults to 1. | 1 | +| theme | string | Browser theme. Pass "light" or "dark". Defaults to "light". | light | +| userAgent | string | Custom user agent string. Defaults to browser default. | | +| fullpage | boolean | Capture full page scroll. Pass 0 for viewport only, or 1 for full page. Defaults to 0. | | +| locale | string | Browser locale (e.g., "en-US", "fr-FR"). Defaults to browser default. | | +| timezone | string | IANA timezone identifier (e.g., "America/New_York", "Europe/London"). Defaults to browser default. | | +| latitude | number | Geolocation latitude. Pass a number between -90 to 90. Defaults to 0. | 0 | +| longitude | number | Geolocation longitude. Pass a number between -180 to 180. Defaults to 0. | 0 | +| accuracy | number | Geolocation accuracy in meters. Pass a number between 0 to 100000. Defaults to 0. | 0 | +| touch | boolean | Enable touch support. Pass 0 for no touch, or 1 for touch enabled. Defaults to 0. | | +| permissions | array | Browser permissions to grant. Pass an array of permission names like ["geolocation", "camera", "microphone"]. Defaults to empty. | [] | +| sleep | integer | Wait time in seconds before taking the screenshot. Pass an integer between 0 to 10. Defaults to 0. | 0 | +| width | integer | Output image width. Pass 0 to use original width, or an integer between 1 to 2000. Defaults to 0 (original width). | 0 | +| height | integer | Output image height. Pass 0 to use original height, or an integer between 1 to 2000. Defaults to 0 (original height). | 0 | +| quality | integer | Screenshot quality. Pass an integer between 0 to 100. Defaults to keep existing image quality. | -1 | +| output | string | Output format type (jpeg, jpg, png, gif and webp). | | + diff --git a/docs/examples/avatars/get-screenshot.md b/docs/examples/avatars/get-screenshot.md new file mode 100644 index 0000000..b9dfd23 --- /dev/null +++ b/docs/examples/avatars/get-screenshot.md @@ -0,0 +1,37 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setSession(''); // The user session to authenticate with + +$avatars = new Avatars($client); + +$result = $avatars->getScreenshot( + url: 'https://example.com', + headers: [], // optional + viewportWidth: 1, // optional + viewportHeight: 1, // optional + scale: 0.1, // optional + theme: Theme::LIGHT(), // optional + userAgent: '', // optional + fullpage: false, // optional + locale: '', // optional + timezone: Timezone::AFRICAABIDJAN(), // optional + latitude: -90, // optional + longitude: -180, // optional + accuracy: 0, // optional + touch: false, // optional + permissions: [], // optional + sleep: 0, // optional + width: 0, // optional + height: 0, // optional + quality: -1, // optional + output: Output::JPG() // optional +); \ No newline at end of file diff --git a/docs/examples/databases/create-relationship-attribute.md b/docs/examples/databases/create-relationship-attribute.md index caccd36..551fe17 100644 --- a/docs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/databases/create-relationship-attribute.md @@ -3,6 +3,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; use Appwrite\Enums\RelationshipType; +use Appwrite\Enums\RelationMutate; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/databases/update-relationship-attribute.md b/docs/examples/databases/update-relationship-attribute.md index 01783cf..a4d6888 100644 --- a/docs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/databases/update-relationship-attribute.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; +use Appwrite\Enums\RelationMutate; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/functions/create-execution.md b/docs/examples/functions/create-execution.md index cd11b5e..9c12e87 100644 --- a/docs/examples/functions/create-execution.md +++ b/docs/examples/functions/create-execution.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; +use Appwrite\Enums\ExecutionMethod; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index 3d37b80..f717687 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -2,7 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; -use Appwrite\Enums\; +use Appwrite\Enums\Runtime; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -14,7 +14,7 @@ $functions = new Functions($client); $result = $functions->create( functionId: '', name: '', - runtime: ::NODE145(), + runtime: Runtime::NODE145(), execute: ["any"], // optional events: [], // optional schedule: '', // optional diff --git a/docs/examples/functions/get-deployment-download.md b/docs/examples/functions/get-deployment-download.md index 7b3e187..a06f97b 100644 --- a/docs/examples/functions/get-deployment-download.md +++ b/docs/examples/functions/get-deployment-download.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; +use Appwrite\Enums\DeploymentDownloadType; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md index ea8d863..da5ee88 100644 --- a/docs/examples/functions/update.md +++ b/docs/examples/functions/update.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; +use Appwrite\Enums\Runtime; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -13,7 +14,7 @@ $functions = new Functions($client); $result = $functions->update( functionId: '', name: '', - runtime: ::NODE145(), // optional + runtime: Runtime::NODE145(), // optional execute: ["any"], // optional events: [], // optional schedule: '', // optional diff --git a/docs/examples/health/get-failed-jobs.md b/docs/examples/health/get-failed-jobs.md index 02959db..63bc1c8 100644 --- a/docs/examples/health/get-failed-jobs.md +++ b/docs/examples/health/get-failed-jobs.md @@ -2,7 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Health; -use Appwrite\Enums\; +use Appwrite\Enums\Name; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -12,6 +12,6 @@ $client = (new Client()) $health = new Health($client); $result = $health->getFailedJobs( - name: ::V1DATABASE(), + name: Name::V1DATABASE(), threshold: null // optional ); \ No newline at end of file diff --git a/docs/examples/messaging/create-push.md b/docs/examples/messaging/create-push.md index 51fc0d0..614c758 100644 --- a/docs/examples/messaging/create-push.md +++ b/docs/examples/messaging/create-push.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; +use Appwrite\Enums\MessagePriority; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/messaging/create-smtp-provider.md b/docs/examples/messaging/create-smtp-provider.md index 017f20c..953bbcf 100644 --- a/docs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/messaging/create-smtp-provider.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; +use Appwrite\Enums\SmtpEncryption; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/messaging/update-push.md b/docs/examples/messaging/update-push.md index 05a5178..0fea9a1 100644 --- a/docs/examples/messaging/update-push.md +++ b/docs/examples/messaging/update-push.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; +use Appwrite\Enums\MessagePriority; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/messaging/update-smtp-provider.md b/docs/examples/messaging/update-smtp-provider.md index 3bc80d2..495f332 100644 --- a/docs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/messaging/update-smtp-provider.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; +use Appwrite\Enums\SmtpEncryption; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/sites/create.md b/docs/examples/sites/create.md index 4a1c3a4..6f1fc5a 100644 --- a/docs/examples/sites/create.md +++ b/docs/examples/sites/create.md @@ -2,8 +2,9 @@ use Appwrite\Client; use Appwrite\Services\Sites; -use Appwrite\Enums\; -use Appwrite\Enums\; +use Appwrite\Enums\Framework; +use Appwrite\Enums\BuildRuntime; +use Appwrite\Enums\Adapter; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -15,15 +16,15 @@ $sites = new Sites($client); $result = $sites->create( siteId: '', name: '', - framework: ::ANALOG(), - buildRuntime: ::NODE145(), + framework: Framework::ANALOG(), + buildRuntime: BuildRuntime::NODE145(), enabled: false, // optional logging: false, // optional timeout: 1, // optional installCommand: '', // optional buildCommand: '', // optional outputDirectory: '', // optional - adapter: ::STATIC(), // optional + adapter: Adapter::STATIC(), // optional installationId: '', // optional fallbackFile: '', // optional providerRepositoryId: '', // optional diff --git a/docs/examples/sites/get-deployment-download.md b/docs/examples/sites/get-deployment-download.md index 91c6b6e..61fad0b 100644 --- a/docs/examples/sites/get-deployment-download.md +++ b/docs/examples/sites/get-deployment-download.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Sites; +use Appwrite\Enums\DeploymentDownloadType; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/sites/update.md b/docs/examples/sites/update.md index f2ca54a..d2a6c9d 100644 --- a/docs/examples/sites/update.md +++ b/docs/examples/sites/update.md @@ -2,7 +2,9 @@ use Appwrite\Client; use Appwrite\Services\Sites; -use Appwrite\Enums\; +use Appwrite\Enums\Framework; +use Appwrite\Enums\BuildRuntime; +use Appwrite\Enums\Adapter; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint @@ -14,15 +16,15 @@ $sites = new Sites($client); $result = $sites->update( siteId: '', name: '', - framework: ::ANALOG(), + framework: Framework::ANALOG(), enabled: false, // optional logging: false, // optional timeout: 1, // optional installCommand: '', // optional buildCommand: '', // optional outputDirectory: '', // optional - buildRuntime: ::NODE145(), // optional - adapter: ::STATIC(), // optional + buildRuntime: BuildRuntime::NODE145(), // optional + adapter: Adapter::STATIC(), // optional fallbackFile: '', // optional installationId: '', // optional providerRepositoryId: '', // optional diff --git a/docs/examples/storage/create-bucket.md b/docs/examples/storage/create-bucket.md index 2e7cc1d..3d4f717 100644 --- a/docs/examples/storage/create-bucket.md +++ b/docs/examples/storage/create-bucket.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; +use Appwrite\Enums\Compression; use Appwrite\Permission; use Appwrite\Role; @@ -20,7 +21,7 @@ $result = $storage->createBucket( enabled: false, // optional maximumFileSize: 1, // optional allowedFileExtensions: [], // optional - compression: ::NONE(), // optional + compression: Compression::NONE(), // optional encryption: false, // optional antivirus: false // optional ); \ No newline at end of file diff --git a/docs/examples/storage/get-file-preview.md b/docs/examples/storage/get-file-preview.md index 0b65fc3..aaa15a2 100644 --- a/docs/examples/storage/get-file-preview.md +++ b/docs/examples/storage/get-file-preview.md @@ -2,6 +2,8 @@ use Appwrite\Client; use Appwrite\Services\Storage; +use Appwrite\Enums\ImageGravity; +use Appwrite\Enums\ImageFormat; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/storage/update-bucket.md b/docs/examples/storage/update-bucket.md index 819798c..77f4262 100644 --- a/docs/examples/storage/update-bucket.md +++ b/docs/examples/storage/update-bucket.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; +use Appwrite\Enums\Compression; use Appwrite\Permission; use Appwrite\Role; @@ -20,7 +21,7 @@ $result = $storage->updateBucket( enabled: false, // optional maximumFileSize: 1, // optional allowedFileExtensions: [], // optional - compression: ::NONE(), // optional + compression: Compression::NONE(), // optional encryption: false, // optional antivirus: false // optional ); \ No newline at end of file diff --git a/docs/examples/tablesdb/create-relationship-column.md b/docs/examples/tablesdb/create-relationship-column.md index 031d1fd..7f9a06c 100644 --- a/docs/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/tablesdb/create-relationship-column.md @@ -3,6 +3,7 @@ use Appwrite\Client; use Appwrite\Services\TablesDB; use Appwrite\Enums\RelationshipType; +use Appwrite\Enums\RelationMutate; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/tablesdb/update-relationship-column.md b/docs/examples/tablesdb/update-relationship-column.md index 834dc18..cc2e2cc 100644 --- a/docs/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/tablesdb/update-relationship-column.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\TablesDB; +use Appwrite\Enums\RelationMutate; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/users/create-sha-user.md b/docs/examples/users/create-sha-user.md index 0b9a27e..812bcd5 100644 --- a/docs/examples/users/create-sha-user.md +++ b/docs/examples/users/create-sha-user.md @@ -2,6 +2,7 @@ use Appwrite\Client; use Appwrite\Services\Users; +use Appwrite\Enums\PasswordHash; $client = (new Client()) ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/sites.md b/docs/sites.md index d829aae..2e22593 100644 --- a/docs/sites.md +++ b/docs/sites.md @@ -150,7 +150,7 @@ GET https://cloud.appwrite.io/v1/sites/{siteId}/deployments POST https://cloud.appwrite.io/v1/sites/{siteId}/deployments ``` -** Create a new site code deployment. Use this endpoint to upload a new version of your site code. To activate your newly uploaded code, you'll need to update the function's deployment to use your new deployment ID. ** +** Create a new site code deployment. Use this endpoint to upload a new version of your site code. To activate your newly uploaded code, you'll need to update the site's deployment to use your new deployment ID. ** ### Parameters diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..8ed29b9 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,32 @@ + + + + + ./tests/ + + + + + + ./src/Appwrite + + + diff --git a/src/Appwrite/Client.php b/src/Appwrite/Client.php index 3fb42cb..618f616 100644 --- a/src/Appwrite/Client.php +++ b/src/Appwrite/Client.php @@ -37,11 +37,11 @@ class Client */ protected array $headers = [ 'content-type' => '', - 'user-agent' => 'AppwritePHPSDK/17.5.0 ()', + 'user-agent' => 'AppwritePHPSDK/18.0.0 ()', 'x-sdk-name'=> 'PHP', 'x-sdk-platform'=> 'server', 'x-sdk-language'=> 'php', - 'x-sdk-version'=> '17.5.0', + 'x-sdk-version'=> '18.0.0', ]; /** diff --git a/src/Appwrite/Enums/Output.php b/src/Appwrite/Enums/Output.php new file mode 100644 index 0000000..45c0675 --- /dev/null +++ b/src/Appwrite/Enums/Output.php @@ -0,0 +1,83 @@ +value = $value; + } + + public function __toString(): string + { + return $this->value; + } + + public function jsonSerialize(): string + { + return $this->value; + } + + public static function JPG(): Output + { + if (!isset(self::$JPG)) { + self::$JPG = new Output('jpg'); + } + return self::$JPG; + } + public static function JPEG(): Output + { + if (!isset(self::$JPEG)) { + self::$JPEG = new Output('jpeg'); + } + return self::$JPEG; + } + public static function PNG(): Output + { + if (!isset(self::$PNG)) { + self::$PNG = new Output('png'); + } + return self::$PNG; + } + public static function WEBP(): Output + { + if (!isset(self::$WEBP)) { + self::$WEBP = new Output('webp'); + } + return self::$WEBP; + } + public static function HEIC(): Output + { + if (!isset(self::$HEIC)) { + self::$HEIC = new Output('heic'); + } + return self::$HEIC; + } + public static function AVIF(): Output + { + if (!isset(self::$AVIF)) { + self::$AVIF = new Output('avif'); + } + return self::$AVIF; + } + public static function GIF(): Output + { + if (!isset(self::$GIF)) { + self::$GIF = new Output('gif'); + } + return self::$GIF; + } +} \ No newline at end of file diff --git a/src/Appwrite/Enums/Theme.php b/src/Appwrite/Enums/Theme.php new file mode 100644 index 0000000..f17c100 --- /dev/null +++ b/src/Appwrite/Enums/Theme.php @@ -0,0 +1,43 @@ +value = $value; + } + + public function __toString(): string + { + return $this->value; + } + + public function jsonSerialize(): string + { + return $this->value; + } + + public static function LIGHT(): Theme + { + if (!isset(self::$LIGHT)) { + self::$LIGHT = new Theme('light'); + } + return self::$LIGHT; + } + public static function DARK(): Theme + { + if (!isset(self::$DARK)) { + self::$DARK = new Theme('dark'); + } + return self::$DARK; + } +} \ No newline at end of file diff --git a/src/Appwrite/Enums/Timezone.php b/src/Appwrite/Enums/Timezone.php new file mode 100644 index 0000000..67d4571 --- /dev/null +++ b/src/Appwrite/Enums/Timezone.php @@ -0,0 +1,3379 @@ +value = $value; + } + + public function __toString(): string + { + return $this->value; + } + + public function jsonSerialize(): string + { + return $this->value; + } + + public static function AFRICAABIDJAN(): Timezone + { + if (!isset(self::$AFRICAABIDJAN)) { + self::$AFRICAABIDJAN = new Timezone('africa/abidjan'); + } + return self::$AFRICAABIDJAN; + } + public static function AFRICAACCRA(): Timezone + { + if (!isset(self::$AFRICAACCRA)) { + self::$AFRICAACCRA = new Timezone('africa/accra'); + } + return self::$AFRICAACCRA; + } + public static function AFRICAADDISABABA(): Timezone + { + if (!isset(self::$AFRICAADDISABABA)) { + self::$AFRICAADDISABABA = new Timezone('africa/addis_ababa'); + } + return self::$AFRICAADDISABABA; + } + public static function AFRICAALGIERS(): Timezone + { + if (!isset(self::$AFRICAALGIERS)) { + self::$AFRICAALGIERS = new Timezone('africa/algiers'); + } + return self::$AFRICAALGIERS; + } + public static function AFRICAASMARA(): Timezone + { + if (!isset(self::$AFRICAASMARA)) { + self::$AFRICAASMARA = new Timezone('africa/asmara'); + } + return self::$AFRICAASMARA; + } + public static function AFRICABAMAKO(): Timezone + { + if (!isset(self::$AFRICABAMAKO)) { + self::$AFRICABAMAKO = new Timezone('africa/bamako'); + } + return self::$AFRICABAMAKO; + } + public static function AFRICABANGUI(): Timezone + { + if (!isset(self::$AFRICABANGUI)) { + self::$AFRICABANGUI = new Timezone('africa/bangui'); + } + return self::$AFRICABANGUI; + } + public static function AFRICABANJUL(): Timezone + { + if (!isset(self::$AFRICABANJUL)) { + self::$AFRICABANJUL = new Timezone('africa/banjul'); + } + return self::$AFRICABANJUL; + } + public static function AFRICABISSAU(): Timezone + { + if (!isset(self::$AFRICABISSAU)) { + self::$AFRICABISSAU = new Timezone('africa/bissau'); + } + return self::$AFRICABISSAU; + } + public static function AFRICABLANTYRE(): Timezone + { + if (!isset(self::$AFRICABLANTYRE)) { + self::$AFRICABLANTYRE = new Timezone('africa/blantyre'); + } + return self::$AFRICABLANTYRE; + } + public static function AFRICABRAZZAVILLE(): Timezone + { + if (!isset(self::$AFRICABRAZZAVILLE)) { + self::$AFRICABRAZZAVILLE = new Timezone('africa/brazzaville'); + } + return self::$AFRICABRAZZAVILLE; + } + public static function AFRICABUJUMBURA(): Timezone + { + if (!isset(self::$AFRICABUJUMBURA)) { + self::$AFRICABUJUMBURA = new Timezone('africa/bujumbura'); + } + return self::$AFRICABUJUMBURA; + } + public static function AFRICACAIRO(): Timezone + { + if (!isset(self::$AFRICACAIRO)) { + self::$AFRICACAIRO = new Timezone('africa/cairo'); + } + return self::$AFRICACAIRO; + } + public static function AFRICACASABLANCA(): Timezone + { + if (!isset(self::$AFRICACASABLANCA)) { + self::$AFRICACASABLANCA = new Timezone('africa/casablanca'); + } + return self::$AFRICACASABLANCA; + } + public static function AFRICACEUTA(): Timezone + { + if (!isset(self::$AFRICACEUTA)) { + self::$AFRICACEUTA = new Timezone('africa/ceuta'); + } + return self::$AFRICACEUTA; + } + public static function AFRICACONAKRY(): Timezone + { + if (!isset(self::$AFRICACONAKRY)) { + self::$AFRICACONAKRY = new Timezone('africa/conakry'); + } + return self::$AFRICACONAKRY; + } + public static function AFRICADAKAR(): Timezone + { + if (!isset(self::$AFRICADAKAR)) { + self::$AFRICADAKAR = new Timezone('africa/dakar'); + } + return self::$AFRICADAKAR; + } + public static function AFRICADARESSALAAM(): Timezone + { + if (!isset(self::$AFRICADARESSALAAM)) { + self::$AFRICADARESSALAAM = new Timezone('africa/dar_es_salaam'); + } + return self::$AFRICADARESSALAAM; + } + public static function AFRICADJIBOUTI(): Timezone + { + if (!isset(self::$AFRICADJIBOUTI)) { + self::$AFRICADJIBOUTI = new Timezone('africa/djibouti'); + } + return self::$AFRICADJIBOUTI; + } + public static function AFRICADOUALA(): Timezone + { + if (!isset(self::$AFRICADOUALA)) { + self::$AFRICADOUALA = new Timezone('africa/douala'); + } + return self::$AFRICADOUALA; + } + public static function AFRICAELAAIUN(): Timezone + { + if (!isset(self::$AFRICAELAAIUN)) { + self::$AFRICAELAAIUN = new Timezone('africa/el_aaiun'); + } + return self::$AFRICAELAAIUN; + } + public static function AFRICAFREETOWN(): Timezone + { + if (!isset(self::$AFRICAFREETOWN)) { + self::$AFRICAFREETOWN = new Timezone('africa/freetown'); + } + return self::$AFRICAFREETOWN; + } + public static function AFRICAGABORONE(): Timezone + { + if (!isset(self::$AFRICAGABORONE)) { + self::$AFRICAGABORONE = new Timezone('africa/gaborone'); + } + return self::$AFRICAGABORONE; + } + public static function AFRICAHARARE(): Timezone + { + if (!isset(self::$AFRICAHARARE)) { + self::$AFRICAHARARE = new Timezone('africa/harare'); + } + return self::$AFRICAHARARE; + } + public static function AFRICAJOHANNESBURG(): Timezone + { + if (!isset(self::$AFRICAJOHANNESBURG)) { + self::$AFRICAJOHANNESBURG = new Timezone('africa/johannesburg'); + } + return self::$AFRICAJOHANNESBURG; + } + public static function AFRICAJUBA(): Timezone + { + if (!isset(self::$AFRICAJUBA)) { + self::$AFRICAJUBA = new Timezone('africa/juba'); + } + return self::$AFRICAJUBA; + } + public static function AFRICAKAMPALA(): Timezone + { + if (!isset(self::$AFRICAKAMPALA)) { + self::$AFRICAKAMPALA = new Timezone('africa/kampala'); + } + return self::$AFRICAKAMPALA; + } + public static function AFRICAKHARTOUM(): Timezone + { + if (!isset(self::$AFRICAKHARTOUM)) { + self::$AFRICAKHARTOUM = new Timezone('africa/khartoum'); + } + return self::$AFRICAKHARTOUM; + } + public static function AFRICAKIGALI(): Timezone + { + if (!isset(self::$AFRICAKIGALI)) { + self::$AFRICAKIGALI = new Timezone('africa/kigali'); + } + return self::$AFRICAKIGALI; + } + public static function AFRICAKINSHASA(): Timezone + { + if (!isset(self::$AFRICAKINSHASA)) { + self::$AFRICAKINSHASA = new Timezone('africa/kinshasa'); + } + return self::$AFRICAKINSHASA; + } + public static function AFRICALAGOS(): Timezone + { + if (!isset(self::$AFRICALAGOS)) { + self::$AFRICALAGOS = new Timezone('africa/lagos'); + } + return self::$AFRICALAGOS; + } + public static function AFRICALIBREVILLE(): Timezone + { + if (!isset(self::$AFRICALIBREVILLE)) { + self::$AFRICALIBREVILLE = new Timezone('africa/libreville'); + } + return self::$AFRICALIBREVILLE; + } + public static function AFRICALOME(): Timezone + { + if (!isset(self::$AFRICALOME)) { + self::$AFRICALOME = new Timezone('africa/lome'); + } + return self::$AFRICALOME; + } + public static function AFRICALUANDA(): Timezone + { + if (!isset(self::$AFRICALUANDA)) { + self::$AFRICALUANDA = new Timezone('africa/luanda'); + } + return self::$AFRICALUANDA; + } + public static function AFRICALUBUMBASHI(): Timezone + { + if (!isset(self::$AFRICALUBUMBASHI)) { + self::$AFRICALUBUMBASHI = new Timezone('africa/lubumbashi'); + } + return self::$AFRICALUBUMBASHI; + } + public static function AFRICALUSAKA(): Timezone + { + if (!isset(self::$AFRICALUSAKA)) { + self::$AFRICALUSAKA = new Timezone('africa/lusaka'); + } + return self::$AFRICALUSAKA; + } + public static function AFRICAMALABO(): Timezone + { + if (!isset(self::$AFRICAMALABO)) { + self::$AFRICAMALABO = new Timezone('africa/malabo'); + } + return self::$AFRICAMALABO; + } + public static function AFRICAMAPUTO(): Timezone + { + if (!isset(self::$AFRICAMAPUTO)) { + self::$AFRICAMAPUTO = new Timezone('africa/maputo'); + } + return self::$AFRICAMAPUTO; + } + public static function AFRICAMASERU(): Timezone + { + if (!isset(self::$AFRICAMASERU)) { + self::$AFRICAMASERU = new Timezone('africa/maseru'); + } + return self::$AFRICAMASERU; + } + public static function AFRICAMBABANE(): Timezone + { + if (!isset(self::$AFRICAMBABANE)) { + self::$AFRICAMBABANE = new Timezone('africa/mbabane'); + } + return self::$AFRICAMBABANE; + } + public static function AFRICAMOGADISHU(): Timezone + { + if (!isset(self::$AFRICAMOGADISHU)) { + self::$AFRICAMOGADISHU = new Timezone('africa/mogadishu'); + } + return self::$AFRICAMOGADISHU; + } + public static function AFRICAMONROVIA(): Timezone + { + if (!isset(self::$AFRICAMONROVIA)) { + self::$AFRICAMONROVIA = new Timezone('africa/monrovia'); + } + return self::$AFRICAMONROVIA; + } + public static function AFRICANAIROBI(): Timezone + { + if (!isset(self::$AFRICANAIROBI)) { + self::$AFRICANAIROBI = new Timezone('africa/nairobi'); + } + return self::$AFRICANAIROBI; + } + public static function AFRICANDJAMENA(): Timezone + { + if (!isset(self::$AFRICANDJAMENA)) { + self::$AFRICANDJAMENA = new Timezone('africa/ndjamena'); + } + return self::$AFRICANDJAMENA; + } + public static function AFRICANIAMEY(): Timezone + { + if (!isset(self::$AFRICANIAMEY)) { + self::$AFRICANIAMEY = new Timezone('africa/niamey'); + } + return self::$AFRICANIAMEY; + } + public static function AFRICANOUAKCHOTT(): Timezone + { + if (!isset(self::$AFRICANOUAKCHOTT)) { + self::$AFRICANOUAKCHOTT = new Timezone('africa/nouakchott'); + } + return self::$AFRICANOUAKCHOTT; + } + public static function AFRICAOUAGADOUGOU(): Timezone + { + if (!isset(self::$AFRICAOUAGADOUGOU)) { + self::$AFRICAOUAGADOUGOU = new Timezone('africa/ouagadougou'); + } + return self::$AFRICAOUAGADOUGOU; + } + public static function AFRICAPORTONOVO(): Timezone + { + if (!isset(self::$AFRICAPORTONOVO)) { + self::$AFRICAPORTONOVO = new Timezone('africa/porto-novo'); + } + return self::$AFRICAPORTONOVO; + } + public static function AFRICASAOTOME(): Timezone + { + if (!isset(self::$AFRICASAOTOME)) { + self::$AFRICASAOTOME = new Timezone('africa/sao_tome'); + } + return self::$AFRICASAOTOME; + } + public static function AFRICATRIPOLI(): Timezone + { + if (!isset(self::$AFRICATRIPOLI)) { + self::$AFRICATRIPOLI = new Timezone('africa/tripoli'); + } + return self::$AFRICATRIPOLI; + } + public static function AFRICATUNIS(): Timezone + { + if (!isset(self::$AFRICATUNIS)) { + self::$AFRICATUNIS = new Timezone('africa/tunis'); + } + return self::$AFRICATUNIS; + } + public static function AFRICAWINDHOEK(): Timezone + { + if (!isset(self::$AFRICAWINDHOEK)) { + self::$AFRICAWINDHOEK = new Timezone('africa/windhoek'); + } + return self::$AFRICAWINDHOEK; + } + public static function AMERICAADAK(): Timezone + { + if (!isset(self::$AMERICAADAK)) { + self::$AMERICAADAK = new Timezone('america/adak'); + } + return self::$AMERICAADAK; + } + public static function AMERICAANCHORAGE(): Timezone + { + if (!isset(self::$AMERICAANCHORAGE)) { + self::$AMERICAANCHORAGE = new Timezone('america/anchorage'); + } + return self::$AMERICAANCHORAGE; + } + public static function AMERICAANGUILLA(): Timezone + { + if (!isset(self::$AMERICAANGUILLA)) { + self::$AMERICAANGUILLA = new Timezone('america/anguilla'); + } + return self::$AMERICAANGUILLA; + } + public static function AMERICAANTIGUA(): Timezone + { + if (!isset(self::$AMERICAANTIGUA)) { + self::$AMERICAANTIGUA = new Timezone('america/antigua'); + } + return self::$AMERICAANTIGUA; + } + public static function AMERICAARAGUAINA(): Timezone + { + if (!isset(self::$AMERICAARAGUAINA)) { + self::$AMERICAARAGUAINA = new Timezone('america/araguaina'); + } + return self::$AMERICAARAGUAINA; + } + public static function AMERICAARGENTINABUENOSAIRES(): Timezone + { + if (!isset(self::$AMERICAARGENTINABUENOSAIRES)) { + self::$AMERICAARGENTINABUENOSAIRES = new Timezone('america/argentina/buenos_aires'); + } + return self::$AMERICAARGENTINABUENOSAIRES; + } + public static function AMERICAARGENTINACATAMARCA(): Timezone + { + if (!isset(self::$AMERICAARGENTINACATAMARCA)) { + self::$AMERICAARGENTINACATAMARCA = new Timezone('america/argentina/catamarca'); + } + return self::$AMERICAARGENTINACATAMARCA; + } + public static function AMERICAARGENTINACORDOBA(): Timezone + { + if (!isset(self::$AMERICAARGENTINACORDOBA)) { + self::$AMERICAARGENTINACORDOBA = new Timezone('america/argentina/cordoba'); + } + return self::$AMERICAARGENTINACORDOBA; + } + public static function AMERICAARGENTINAJUJUY(): Timezone + { + if (!isset(self::$AMERICAARGENTINAJUJUY)) { + self::$AMERICAARGENTINAJUJUY = new Timezone('america/argentina/jujuy'); + } + return self::$AMERICAARGENTINAJUJUY; + } + public static function AMERICAARGENTINALARIOJA(): Timezone + { + if (!isset(self::$AMERICAARGENTINALARIOJA)) { + self::$AMERICAARGENTINALARIOJA = new Timezone('america/argentina/la_rioja'); + } + return self::$AMERICAARGENTINALARIOJA; + } + public static function AMERICAARGENTINAMENDOZA(): Timezone + { + if (!isset(self::$AMERICAARGENTINAMENDOZA)) { + self::$AMERICAARGENTINAMENDOZA = new Timezone('america/argentina/mendoza'); + } + return self::$AMERICAARGENTINAMENDOZA; + } + public static function AMERICAARGENTINARIOGALLEGOS(): Timezone + { + if (!isset(self::$AMERICAARGENTINARIOGALLEGOS)) { + self::$AMERICAARGENTINARIOGALLEGOS = new Timezone('america/argentina/rio_gallegos'); + } + return self::$AMERICAARGENTINARIOGALLEGOS; + } + public static function AMERICAARGENTINASALTA(): Timezone + { + if (!isset(self::$AMERICAARGENTINASALTA)) { + self::$AMERICAARGENTINASALTA = new Timezone('america/argentina/salta'); + } + return self::$AMERICAARGENTINASALTA; + } + public static function AMERICAARGENTINASANJUAN(): Timezone + { + if (!isset(self::$AMERICAARGENTINASANJUAN)) { + self::$AMERICAARGENTINASANJUAN = new Timezone('america/argentina/san_juan'); + } + return self::$AMERICAARGENTINASANJUAN; + } + public static function AMERICAARGENTINASANLUIS(): Timezone + { + if (!isset(self::$AMERICAARGENTINASANLUIS)) { + self::$AMERICAARGENTINASANLUIS = new Timezone('america/argentina/san_luis'); + } + return self::$AMERICAARGENTINASANLUIS; + } + public static function AMERICAARGENTINATUCUMAN(): Timezone + { + if (!isset(self::$AMERICAARGENTINATUCUMAN)) { + self::$AMERICAARGENTINATUCUMAN = new Timezone('america/argentina/tucuman'); + } + return self::$AMERICAARGENTINATUCUMAN; + } + public static function AMERICAARGENTINAUSHUAIA(): Timezone + { + if (!isset(self::$AMERICAARGENTINAUSHUAIA)) { + self::$AMERICAARGENTINAUSHUAIA = new Timezone('america/argentina/ushuaia'); + } + return self::$AMERICAARGENTINAUSHUAIA; + } + public static function AMERICAARUBA(): Timezone + { + if (!isset(self::$AMERICAARUBA)) { + self::$AMERICAARUBA = new Timezone('america/aruba'); + } + return self::$AMERICAARUBA; + } + public static function AMERICAASUNCION(): Timezone + { + if (!isset(self::$AMERICAASUNCION)) { + self::$AMERICAASUNCION = new Timezone('america/asuncion'); + } + return self::$AMERICAASUNCION; + } + public static function AMERICAATIKOKAN(): Timezone + { + if (!isset(self::$AMERICAATIKOKAN)) { + self::$AMERICAATIKOKAN = new Timezone('america/atikokan'); + } + return self::$AMERICAATIKOKAN; + } + public static function AMERICABAHIA(): Timezone + { + if (!isset(self::$AMERICABAHIA)) { + self::$AMERICABAHIA = new Timezone('america/bahia'); + } + return self::$AMERICABAHIA; + } + public static function AMERICABAHIABANDERAS(): Timezone + { + if (!isset(self::$AMERICABAHIABANDERAS)) { + self::$AMERICABAHIABANDERAS = new Timezone('america/bahia_banderas'); + } + return self::$AMERICABAHIABANDERAS; + } + public static function AMERICABARBADOS(): Timezone + { + if (!isset(self::$AMERICABARBADOS)) { + self::$AMERICABARBADOS = new Timezone('america/barbados'); + } + return self::$AMERICABARBADOS; + } + public static function AMERICABELEM(): Timezone + { + if (!isset(self::$AMERICABELEM)) { + self::$AMERICABELEM = new Timezone('america/belem'); + } + return self::$AMERICABELEM; + } + public static function AMERICABELIZE(): Timezone + { + if (!isset(self::$AMERICABELIZE)) { + self::$AMERICABELIZE = new Timezone('america/belize'); + } + return self::$AMERICABELIZE; + } + public static function AMERICABLANCSABLON(): Timezone + { + if (!isset(self::$AMERICABLANCSABLON)) { + self::$AMERICABLANCSABLON = new Timezone('america/blanc-sablon'); + } + return self::$AMERICABLANCSABLON; + } + public static function AMERICABOAVISTA(): Timezone + { + if (!isset(self::$AMERICABOAVISTA)) { + self::$AMERICABOAVISTA = new Timezone('america/boa_vista'); + } + return self::$AMERICABOAVISTA; + } + public static function AMERICABOGOTA(): Timezone + { + if (!isset(self::$AMERICABOGOTA)) { + self::$AMERICABOGOTA = new Timezone('america/bogota'); + } + return self::$AMERICABOGOTA; + } + public static function AMERICABOISE(): Timezone + { + if (!isset(self::$AMERICABOISE)) { + self::$AMERICABOISE = new Timezone('america/boise'); + } + return self::$AMERICABOISE; + } + public static function AMERICACAMBRIDGEBAY(): Timezone + { + if (!isset(self::$AMERICACAMBRIDGEBAY)) { + self::$AMERICACAMBRIDGEBAY = new Timezone('america/cambridge_bay'); + } + return self::$AMERICACAMBRIDGEBAY; + } + public static function AMERICACAMPOGRANDE(): Timezone + { + if (!isset(self::$AMERICACAMPOGRANDE)) { + self::$AMERICACAMPOGRANDE = new Timezone('america/campo_grande'); + } + return self::$AMERICACAMPOGRANDE; + } + public static function AMERICACANCUN(): Timezone + { + if (!isset(self::$AMERICACANCUN)) { + self::$AMERICACANCUN = new Timezone('america/cancun'); + } + return self::$AMERICACANCUN; + } + public static function AMERICACARACAS(): Timezone + { + if (!isset(self::$AMERICACARACAS)) { + self::$AMERICACARACAS = new Timezone('america/caracas'); + } + return self::$AMERICACARACAS; + } + public static function AMERICACAYENNE(): Timezone + { + if (!isset(self::$AMERICACAYENNE)) { + self::$AMERICACAYENNE = new Timezone('america/cayenne'); + } + return self::$AMERICACAYENNE; + } + public static function AMERICACAYMAN(): Timezone + { + if (!isset(self::$AMERICACAYMAN)) { + self::$AMERICACAYMAN = new Timezone('america/cayman'); + } + return self::$AMERICACAYMAN; + } + public static function AMERICACHICAGO(): Timezone + { + if (!isset(self::$AMERICACHICAGO)) { + self::$AMERICACHICAGO = new Timezone('america/chicago'); + } + return self::$AMERICACHICAGO; + } + public static function AMERICACHIHUAHUA(): Timezone + { + if (!isset(self::$AMERICACHIHUAHUA)) { + self::$AMERICACHIHUAHUA = new Timezone('america/chihuahua'); + } + return self::$AMERICACHIHUAHUA; + } + public static function AMERICACIUDADJUAREZ(): Timezone + { + if (!isset(self::$AMERICACIUDADJUAREZ)) { + self::$AMERICACIUDADJUAREZ = new Timezone('america/ciudad_juarez'); + } + return self::$AMERICACIUDADJUAREZ; + } + public static function AMERICACOSTARICA(): Timezone + { + if (!isset(self::$AMERICACOSTARICA)) { + self::$AMERICACOSTARICA = new Timezone('america/costa_rica'); + } + return self::$AMERICACOSTARICA; + } + public static function AMERICACOYHAIQUE(): Timezone + { + if (!isset(self::$AMERICACOYHAIQUE)) { + self::$AMERICACOYHAIQUE = new Timezone('america/coyhaique'); + } + return self::$AMERICACOYHAIQUE; + } + public static function AMERICACRESTON(): Timezone + { + if (!isset(self::$AMERICACRESTON)) { + self::$AMERICACRESTON = new Timezone('america/creston'); + } + return self::$AMERICACRESTON; + } + public static function AMERICACUIABA(): Timezone + { + if (!isset(self::$AMERICACUIABA)) { + self::$AMERICACUIABA = new Timezone('america/cuiaba'); + } + return self::$AMERICACUIABA; + } + public static function AMERICACURACAO(): Timezone + { + if (!isset(self::$AMERICACURACAO)) { + self::$AMERICACURACAO = new Timezone('america/curacao'); + } + return self::$AMERICACURACAO; + } + public static function AMERICADANMARKSHAVN(): Timezone + { + if (!isset(self::$AMERICADANMARKSHAVN)) { + self::$AMERICADANMARKSHAVN = new Timezone('america/danmarkshavn'); + } + return self::$AMERICADANMARKSHAVN; + } + public static function AMERICADAWSON(): Timezone + { + if (!isset(self::$AMERICADAWSON)) { + self::$AMERICADAWSON = new Timezone('america/dawson'); + } + return self::$AMERICADAWSON; + } + public static function AMERICADAWSONCREEK(): Timezone + { + if (!isset(self::$AMERICADAWSONCREEK)) { + self::$AMERICADAWSONCREEK = new Timezone('america/dawson_creek'); + } + return self::$AMERICADAWSONCREEK; + } + public static function AMERICADENVER(): Timezone + { + if (!isset(self::$AMERICADENVER)) { + self::$AMERICADENVER = new Timezone('america/denver'); + } + return self::$AMERICADENVER; + } + public static function AMERICADETROIT(): Timezone + { + if (!isset(self::$AMERICADETROIT)) { + self::$AMERICADETROIT = new Timezone('america/detroit'); + } + return self::$AMERICADETROIT; + } + public static function AMERICADOMINICA(): Timezone + { + if (!isset(self::$AMERICADOMINICA)) { + self::$AMERICADOMINICA = new Timezone('america/dominica'); + } + return self::$AMERICADOMINICA; + } + public static function AMERICAEDMONTON(): Timezone + { + if (!isset(self::$AMERICAEDMONTON)) { + self::$AMERICAEDMONTON = new Timezone('america/edmonton'); + } + return self::$AMERICAEDMONTON; + } + public static function AMERICAEIRUNEPE(): Timezone + { + if (!isset(self::$AMERICAEIRUNEPE)) { + self::$AMERICAEIRUNEPE = new Timezone('america/eirunepe'); + } + return self::$AMERICAEIRUNEPE; + } + public static function AMERICAELSALVADOR(): Timezone + { + if (!isset(self::$AMERICAELSALVADOR)) { + self::$AMERICAELSALVADOR = new Timezone('america/el_salvador'); + } + return self::$AMERICAELSALVADOR; + } + public static function AMERICAFORTNELSON(): Timezone + { + if (!isset(self::$AMERICAFORTNELSON)) { + self::$AMERICAFORTNELSON = new Timezone('america/fort_nelson'); + } + return self::$AMERICAFORTNELSON; + } + public static function AMERICAFORTALEZA(): Timezone + { + if (!isset(self::$AMERICAFORTALEZA)) { + self::$AMERICAFORTALEZA = new Timezone('america/fortaleza'); + } + return self::$AMERICAFORTALEZA; + } + public static function AMERICAGLACEBAY(): Timezone + { + if (!isset(self::$AMERICAGLACEBAY)) { + self::$AMERICAGLACEBAY = new Timezone('america/glace_bay'); + } + return self::$AMERICAGLACEBAY; + } + public static function AMERICAGOOSEBAY(): Timezone + { + if (!isset(self::$AMERICAGOOSEBAY)) { + self::$AMERICAGOOSEBAY = new Timezone('america/goose_bay'); + } + return self::$AMERICAGOOSEBAY; + } + public static function AMERICAGRANDTURK(): Timezone + { + if (!isset(self::$AMERICAGRANDTURK)) { + self::$AMERICAGRANDTURK = new Timezone('america/grand_turk'); + } + return self::$AMERICAGRANDTURK; + } + public static function AMERICAGRENADA(): Timezone + { + if (!isset(self::$AMERICAGRENADA)) { + self::$AMERICAGRENADA = new Timezone('america/grenada'); + } + return self::$AMERICAGRENADA; + } + public static function AMERICAGUADELOUPE(): Timezone + { + if (!isset(self::$AMERICAGUADELOUPE)) { + self::$AMERICAGUADELOUPE = new Timezone('america/guadeloupe'); + } + return self::$AMERICAGUADELOUPE; + } + public static function AMERICAGUATEMALA(): Timezone + { + if (!isset(self::$AMERICAGUATEMALA)) { + self::$AMERICAGUATEMALA = new Timezone('america/guatemala'); + } + return self::$AMERICAGUATEMALA; + } + public static function AMERICAGUAYAQUIL(): Timezone + { + if (!isset(self::$AMERICAGUAYAQUIL)) { + self::$AMERICAGUAYAQUIL = new Timezone('america/guayaquil'); + } + return self::$AMERICAGUAYAQUIL; + } + public static function AMERICAGUYANA(): Timezone + { + if (!isset(self::$AMERICAGUYANA)) { + self::$AMERICAGUYANA = new Timezone('america/guyana'); + } + return self::$AMERICAGUYANA; + } + public static function AMERICAHALIFAX(): Timezone + { + if (!isset(self::$AMERICAHALIFAX)) { + self::$AMERICAHALIFAX = new Timezone('america/halifax'); + } + return self::$AMERICAHALIFAX; + } + public static function AMERICAHAVANA(): Timezone + { + if (!isset(self::$AMERICAHAVANA)) { + self::$AMERICAHAVANA = new Timezone('america/havana'); + } + return self::$AMERICAHAVANA; + } + public static function AMERICAHERMOSILLO(): Timezone + { + if (!isset(self::$AMERICAHERMOSILLO)) { + self::$AMERICAHERMOSILLO = new Timezone('america/hermosillo'); + } + return self::$AMERICAHERMOSILLO; + } + public static function AMERICAINDIANAINDIANAPOLIS(): Timezone + { + if (!isset(self::$AMERICAINDIANAINDIANAPOLIS)) { + self::$AMERICAINDIANAINDIANAPOLIS = new Timezone('america/indiana/indianapolis'); + } + return self::$AMERICAINDIANAINDIANAPOLIS; + } + public static function AMERICAINDIANAKNOX(): Timezone + { + if (!isset(self::$AMERICAINDIANAKNOX)) { + self::$AMERICAINDIANAKNOX = new Timezone('america/indiana/knox'); + } + return self::$AMERICAINDIANAKNOX; + } + public static function AMERICAINDIANAMARENGO(): Timezone + { + if (!isset(self::$AMERICAINDIANAMARENGO)) { + self::$AMERICAINDIANAMARENGO = new Timezone('america/indiana/marengo'); + } + return self::$AMERICAINDIANAMARENGO; + } + public static function AMERICAINDIANAPETERSBURG(): Timezone + { + if (!isset(self::$AMERICAINDIANAPETERSBURG)) { + self::$AMERICAINDIANAPETERSBURG = new Timezone('america/indiana/petersburg'); + } + return self::$AMERICAINDIANAPETERSBURG; + } + public static function AMERICAINDIANATELLCITY(): Timezone + { + if (!isset(self::$AMERICAINDIANATELLCITY)) { + self::$AMERICAINDIANATELLCITY = new Timezone('america/indiana/tell_city'); + } + return self::$AMERICAINDIANATELLCITY; + } + public static function AMERICAINDIANAVEVAY(): Timezone + { + if (!isset(self::$AMERICAINDIANAVEVAY)) { + self::$AMERICAINDIANAVEVAY = new Timezone('america/indiana/vevay'); + } + return self::$AMERICAINDIANAVEVAY; + } + public static function AMERICAINDIANAVINCENNES(): Timezone + { + if (!isset(self::$AMERICAINDIANAVINCENNES)) { + self::$AMERICAINDIANAVINCENNES = new Timezone('america/indiana/vincennes'); + } + return self::$AMERICAINDIANAVINCENNES; + } + public static function AMERICAINDIANAWINAMAC(): Timezone + { + if (!isset(self::$AMERICAINDIANAWINAMAC)) { + self::$AMERICAINDIANAWINAMAC = new Timezone('america/indiana/winamac'); + } + return self::$AMERICAINDIANAWINAMAC; + } + public static function AMERICAINUVIK(): Timezone + { + if (!isset(self::$AMERICAINUVIK)) { + self::$AMERICAINUVIK = new Timezone('america/inuvik'); + } + return self::$AMERICAINUVIK; + } + public static function AMERICAIQALUIT(): Timezone + { + if (!isset(self::$AMERICAIQALUIT)) { + self::$AMERICAIQALUIT = new Timezone('america/iqaluit'); + } + return self::$AMERICAIQALUIT; + } + public static function AMERICAJAMAICA(): Timezone + { + if (!isset(self::$AMERICAJAMAICA)) { + self::$AMERICAJAMAICA = new Timezone('america/jamaica'); + } + return self::$AMERICAJAMAICA; + } + public static function AMERICAJUNEAU(): Timezone + { + if (!isset(self::$AMERICAJUNEAU)) { + self::$AMERICAJUNEAU = new Timezone('america/juneau'); + } + return self::$AMERICAJUNEAU; + } + public static function AMERICAKENTUCKYLOUISVILLE(): Timezone + { + if (!isset(self::$AMERICAKENTUCKYLOUISVILLE)) { + self::$AMERICAKENTUCKYLOUISVILLE = new Timezone('america/kentucky/louisville'); + } + return self::$AMERICAKENTUCKYLOUISVILLE; + } + public static function AMERICAKENTUCKYMONTICELLO(): Timezone + { + if (!isset(self::$AMERICAKENTUCKYMONTICELLO)) { + self::$AMERICAKENTUCKYMONTICELLO = new Timezone('america/kentucky/monticello'); + } + return self::$AMERICAKENTUCKYMONTICELLO; + } + public static function AMERICAKRALENDIJK(): Timezone + { + if (!isset(self::$AMERICAKRALENDIJK)) { + self::$AMERICAKRALENDIJK = new Timezone('america/kralendijk'); + } + return self::$AMERICAKRALENDIJK; + } + public static function AMERICALAPAZ(): Timezone + { + if (!isset(self::$AMERICALAPAZ)) { + self::$AMERICALAPAZ = new Timezone('america/la_paz'); + } + return self::$AMERICALAPAZ; + } + public static function AMERICALIMA(): Timezone + { + if (!isset(self::$AMERICALIMA)) { + self::$AMERICALIMA = new Timezone('america/lima'); + } + return self::$AMERICALIMA; + } + public static function AMERICALOSANGELES(): Timezone + { + if (!isset(self::$AMERICALOSANGELES)) { + self::$AMERICALOSANGELES = new Timezone('america/los_angeles'); + } + return self::$AMERICALOSANGELES; + } + public static function AMERICALOWERPRINCES(): Timezone + { + if (!isset(self::$AMERICALOWERPRINCES)) { + self::$AMERICALOWERPRINCES = new Timezone('america/lower_princes'); + } + return self::$AMERICALOWERPRINCES; + } + public static function AMERICAMACEIO(): Timezone + { + if (!isset(self::$AMERICAMACEIO)) { + self::$AMERICAMACEIO = new Timezone('america/maceio'); + } + return self::$AMERICAMACEIO; + } + public static function AMERICAMANAGUA(): Timezone + { + if (!isset(self::$AMERICAMANAGUA)) { + self::$AMERICAMANAGUA = new Timezone('america/managua'); + } + return self::$AMERICAMANAGUA; + } + public static function AMERICAMANAUS(): Timezone + { + if (!isset(self::$AMERICAMANAUS)) { + self::$AMERICAMANAUS = new Timezone('america/manaus'); + } + return self::$AMERICAMANAUS; + } + public static function AMERICAMARIGOT(): Timezone + { + if (!isset(self::$AMERICAMARIGOT)) { + self::$AMERICAMARIGOT = new Timezone('america/marigot'); + } + return self::$AMERICAMARIGOT; + } + public static function AMERICAMARTINIQUE(): Timezone + { + if (!isset(self::$AMERICAMARTINIQUE)) { + self::$AMERICAMARTINIQUE = new Timezone('america/martinique'); + } + return self::$AMERICAMARTINIQUE; + } + public static function AMERICAMATAMOROS(): Timezone + { + if (!isset(self::$AMERICAMATAMOROS)) { + self::$AMERICAMATAMOROS = new Timezone('america/matamoros'); + } + return self::$AMERICAMATAMOROS; + } + public static function AMERICAMAZATLAN(): Timezone + { + if (!isset(self::$AMERICAMAZATLAN)) { + self::$AMERICAMAZATLAN = new Timezone('america/mazatlan'); + } + return self::$AMERICAMAZATLAN; + } + public static function AMERICAMENOMINEE(): Timezone + { + if (!isset(self::$AMERICAMENOMINEE)) { + self::$AMERICAMENOMINEE = new Timezone('america/menominee'); + } + return self::$AMERICAMENOMINEE; + } + public static function AMERICAMERIDA(): Timezone + { + if (!isset(self::$AMERICAMERIDA)) { + self::$AMERICAMERIDA = new Timezone('america/merida'); + } + return self::$AMERICAMERIDA; + } + public static function AMERICAMETLAKATLA(): Timezone + { + if (!isset(self::$AMERICAMETLAKATLA)) { + self::$AMERICAMETLAKATLA = new Timezone('america/metlakatla'); + } + return self::$AMERICAMETLAKATLA; + } + public static function AMERICAMEXICOCITY(): Timezone + { + if (!isset(self::$AMERICAMEXICOCITY)) { + self::$AMERICAMEXICOCITY = new Timezone('america/mexico_city'); + } + return self::$AMERICAMEXICOCITY; + } + public static function AMERICAMIQUELON(): Timezone + { + if (!isset(self::$AMERICAMIQUELON)) { + self::$AMERICAMIQUELON = new Timezone('america/miquelon'); + } + return self::$AMERICAMIQUELON; + } + public static function AMERICAMONCTON(): Timezone + { + if (!isset(self::$AMERICAMONCTON)) { + self::$AMERICAMONCTON = new Timezone('america/moncton'); + } + return self::$AMERICAMONCTON; + } + public static function AMERICAMONTERREY(): Timezone + { + if (!isset(self::$AMERICAMONTERREY)) { + self::$AMERICAMONTERREY = new Timezone('america/monterrey'); + } + return self::$AMERICAMONTERREY; + } + public static function AMERICAMONTEVIDEO(): Timezone + { + if (!isset(self::$AMERICAMONTEVIDEO)) { + self::$AMERICAMONTEVIDEO = new Timezone('america/montevideo'); + } + return self::$AMERICAMONTEVIDEO; + } + public static function AMERICAMONTSERRAT(): Timezone + { + if (!isset(self::$AMERICAMONTSERRAT)) { + self::$AMERICAMONTSERRAT = new Timezone('america/montserrat'); + } + return self::$AMERICAMONTSERRAT; + } + public static function AMERICANASSAU(): Timezone + { + if (!isset(self::$AMERICANASSAU)) { + self::$AMERICANASSAU = new Timezone('america/nassau'); + } + return self::$AMERICANASSAU; + } + public static function AMERICANEWYORK(): Timezone + { + if (!isset(self::$AMERICANEWYORK)) { + self::$AMERICANEWYORK = new Timezone('america/new_york'); + } + return self::$AMERICANEWYORK; + } + public static function AMERICANOME(): Timezone + { + if (!isset(self::$AMERICANOME)) { + self::$AMERICANOME = new Timezone('america/nome'); + } + return self::$AMERICANOME; + } + public static function AMERICANORONHA(): Timezone + { + if (!isset(self::$AMERICANORONHA)) { + self::$AMERICANORONHA = new Timezone('america/noronha'); + } + return self::$AMERICANORONHA; + } + public static function AMERICANORTHDAKOTABEULAH(): Timezone + { + if (!isset(self::$AMERICANORTHDAKOTABEULAH)) { + self::$AMERICANORTHDAKOTABEULAH = new Timezone('america/north_dakota/beulah'); + } + return self::$AMERICANORTHDAKOTABEULAH; + } + public static function AMERICANORTHDAKOTACENTER(): Timezone + { + if (!isset(self::$AMERICANORTHDAKOTACENTER)) { + self::$AMERICANORTHDAKOTACENTER = new Timezone('america/north_dakota/center'); + } + return self::$AMERICANORTHDAKOTACENTER; + } + public static function AMERICANORTHDAKOTANEWSALEM(): Timezone + { + if (!isset(self::$AMERICANORTHDAKOTANEWSALEM)) { + self::$AMERICANORTHDAKOTANEWSALEM = new Timezone('america/north_dakota/new_salem'); + } + return self::$AMERICANORTHDAKOTANEWSALEM; + } + public static function AMERICANUUK(): Timezone + { + if (!isset(self::$AMERICANUUK)) { + self::$AMERICANUUK = new Timezone('america/nuuk'); + } + return self::$AMERICANUUK; + } + public static function AMERICAOJINAGA(): Timezone + { + if (!isset(self::$AMERICAOJINAGA)) { + self::$AMERICAOJINAGA = new Timezone('america/ojinaga'); + } + return self::$AMERICAOJINAGA; + } + public static function AMERICAPANAMA(): Timezone + { + if (!isset(self::$AMERICAPANAMA)) { + self::$AMERICAPANAMA = new Timezone('america/panama'); + } + return self::$AMERICAPANAMA; + } + public static function AMERICAPARAMARIBO(): Timezone + { + if (!isset(self::$AMERICAPARAMARIBO)) { + self::$AMERICAPARAMARIBO = new Timezone('america/paramaribo'); + } + return self::$AMERICAPARAMARIBO; + } + public static function AMERICAPHOENIX(): Timezone + { + if (!isset(self::$AMERICAPHOENIX)) { + self::$AMERICAPHOENIX = new Timezone('america/phoenix'); + } + return self::$AMERICAPHOENIX; + } + public static function AMERICAPORTAUPRINCE(): Timezone + { + if (!isset(self::$AMERICAPORTAUPRINCE)) { + self::$AMERICAPORTAUPRINCE = new Timezone('america/port-au-prince'); + } + return self::$AMERICAPORTAUPRINCE; + } + public static function AMERICAPORTOFSPAIN(): Timezone + { + if (!isset(self::$AMERICAPORTOFSPAIN)) { + self::$AMERICAPORTOFSPAIN = new Timezone('america/port_of_spain'); + } + return self::$AMERICAPORTOFSPAIN; + } + public static function AMERICAPORTOVELHO(): Timezone + { + if (!isset(self::$AMERICAPORTOVELHO)) { + self::$AMERICAPORTOVELHO = new Timezone('america/porto_velho'); + } + return self::$AMERICAPORTOVELHO; + } + public static function AMERICAPUERTORICO(): Timezone + { + if (!isset(self::$AMERICAPUERTORICO)) { + self::$AMERICAPUERTORICO = new Timezone('america/puerto_rico'); + } + return self::$AMERICAPUERTORICO; + } + public static function AMERICAPUNTAARENAS(): Timezone + { + if (!isset(self::$AMERICAPUNTAARENAS)) { + self::$AMERICAPUNTAARENAS = new Timezone('america/punta_arenas'); + } + return self::$AMERICAPUNTAARENAS; + } + public static function AMERICARANKININLET(): Timezone + { + if (!isset(self::$AMERICARANKININLET)) { + self::$AMERICARANKININLET = new Timezone('america/rankin_inlet'); + } + return self::$AMERICARANKININLET; + } + public static function AMERICARECIFE(): Timezone + { + if (!isset(self::$AMERICARECIFE)) { + self::$AMERICARECIFE = new Timezone('america/recife'); + } + return self::$AMERICARECIFE; + } + public static function AMERICAREGINA(): Timezone + { + if (!isset(self::$AMERICAREGINA)) { + self::$AMERICAREGINA = new Timezone('america/regina'); + } + return self::$AMERICAREGINA; + } + public static function AMERICARESOLUTE(): Timezone + { + if (!isset(self::$AMERICARESOLUTE)) { + self::$AMERICARESOLUTE = new Timezone('america/resolute'); + } + return self::$AMERICARESOLUTE; + } + public static function AMERICARIOBRANCO(): Timezone + { + if (!isset(self::$AMERICARIOBRANCO)) { + self::$AMERICARIOBRANCO = new Timezone('america/rio_branco'); + } + return self::$AMERICARIOBRANCO; + } + public static function AMERICASANTAREM(): Timezone + { + if (!isset(self::$AMERICASANTAREM)) { + self::$AMERICASANTAREM = new Timezone('america/santarem'); + } + return self::$AMERICASANTAREM; + } + public static function AMERICASANTIAGO(): Timezone + { + if (!isset(self::$AMERICASANTIAGO)) { + self::$AMERICASANTIAGO = new Timezone('america/santiago'); + } + return self::$AMERICASANTIAGO; + } + public static function AMERICASANTODOMINGO(): Timezone + { + if (!isset(self::$AMERICASANTODOMINGO)) { + self::$AMERICASANTODOMINGO = new Timezone('america/santo_domingo'); + } + return self::$AMERICASANTODOMINGO; + } + public static function AMERICASAOPAULO(): Timezone + { + if (!isset(self::$AMERICASAOPAULO)) { + self::$AMERICASAOPAULO = new Timezone('america/sao_paulo'); + } + return self::$AMERICASAOPAULO; + } + public static function AMERICASCORESBYSUND(): Timezone + { + if (!isset(self::$AMERICASCORESBYSUND)) { + self::$AMERICASCORESBYSUND = new Timezone('america/scoresbysund'); + } + return self::$AMERICASCORESBYSUND; + } + public static function AMERICASITKA(): Timezone + { + if (!isset(self::$AMERICASITKA)) { + self::$AMERICASITKA = new Timezone('america/sitka'); + } + return self::$AMERICASITKA; + } + public static function AMERICASTBARTHELEMY(): Timezone + { + if (!isset(self::$AMERICASTBARTHELEMY)) { + self::$AMERICASTBARTHELEMY = new Timezone('america/st_barthelemy'); + } + return self::$AMERICASTBARTHELEMY; + } + public static function AMERICASTJOHNS(): Timezone + { + if (!isset(self::$AMERICASTJOHNS)) { + self::$AMERICASTJOHNS = new Timezone('america/st_johns'); + } + return self::$AMERICASTJOHNS; + } + public static function AMERICASTKITTS(): Timezone + { + if (!isset(self::$AMERICASTKITTS)) { + self::$AMERICASTKITTS = new Timezone('america/st_kitts'); + } + return self::$AMERICASTKITTS; + } + public static function AMERICASTLUCIA(): Timezone + { + if (!isset(self::$AMERICASTLUCIA)) { + self::$AMERICASTLUCIA = new Timezone('america/st_lucia'); + } + return self::$AMERICASTLUCIA; + } + public static function AMERICASTTHOMAS(): Timezone + { + if (!isset(self::$AMERICASTTHOMAS)) { + self::$AMERICASTTHOMAS = new Timezone('america/st_thomas'); + } + return self::$AMERICASTTHOMAS; + } + public static function AMERICASTVINCENT(): Timezone + { + if (!isset(self::$AMERICASTVINCENT)) { + self::$AMERICASTVINCENT = new Timezone('america/st_vincent'); + } + return self::$AMERICASTVINCENT; + } + public static function AMERICASWIFTCURRENT(): Timezone + { + if (!isset(self::$AMERICASWIFTCURRENT)) { + self::$AMERICASWIFTCURRENT = new Timezone('america/swift_current'); + } + return self::$AMERICASWIFTCURRENT; + } + public static function AMERICATEGUCIGALPA(): Timezone + { + if (!isset(self::$AMERICATEGUCIGALPA)) { + self::$AMERICATEGUCIGALPA = new Timezone('america/tegucigalpa'); + } + return self::$AMERICATEGUCIGALPA; + } + public static function AMERICATHULE(): Timezone + { + if (!isset(self::$AMERICATHULE)) { + self::$AMERICATHULE = new Timezone('america/thule'); + } + return self::$AMERICATHULE; + } + public static function AMERICATIJUANA(): Timezone + { + if (!isset(self::$AMERICATIJUANA)) { + self::$AMERICATIJUANA = new Timezone('america/tijuana'); + } + return self::$AMERICATIJUANA; + } + public static function AMERICATORONTO(): Timezone + { + if (!isset(self::$AMERICATORONTO)) { + self::$AMERICATORONTO = new Timezone('america/toronto'); + } + return self::$AMERICATORONTO; + } + public static function AMERICATORTOLA(): Timezone + { + if (!isset(self::$AMERICATORTOLA)) { + self::$AMERICATORTOLA = new Timezone('america/tortola'); + } + return self::$AMERICATORTOLA; + } + public static function AMERICAVANCOUVER(): Timezone + { + if (!isset(self::$AMERICAVANCOUVER)) { + self::$AMERICAVANCOUVER = new Timezone('america/vancouver'); + } + return self::$AMERICAVANCOUVER; + } + public static function AMERICAWHITEHORSE(): Timezone + { + if (!isset(self::$AMERICAWHITEHORSE)) { + self::$AMERICAWHITEHORSE = new Timezone('america/whitehorse'); + } + return self::$AMERICAWHITEHORSE; + } + public static function AMERICAWINNIPEG(): Timezone + { + if (!isset(self::$AMERICAWINNIPEG)) { + self::$AMERICAWINNIPEG = new Timezone('america/winnipeg'); + } + return self::$AMERICAWINNIPEG; + } + public static function AMERICAYAKUTAT(): Timezone + { + if (!isset(self::$AMERICAYAKUTAT)) { + self::$AMERICAYAKUTAT = new Timezone('america/yakutat'); + } + return self::$AMERICAYAKUTAT; + } + public static function ANTARCTICACASEY(): Timezone + { + if (!isset(self::$ANTARCTICACASEY)) { + self::$ANTARCTICACASEY = new Timezone('antarctica/casey'); + } + return self::$ANTARCTICACASEY; + } + public static function ANTARCTICADAVIS(): Timezone + { + if (!isset(self::$ANTARCTICADAVIS)) { + self::$ANTARCTICADAVIS = new Timezone('antarctica/davis'); + } + return self::$ANTARCTICADAVIS; + } + public static function ANTARCTICADUMONTDURVILLE(): Timezone + { + if (!isset(self::$ANTARCTICADUMONTDURVILLE)) { + self::$ANTARCTICADUMONTDURVILLE = new Timezone('antarctica/dumontdurville'); + } + return self::$ANTARCTICADUMONTDURVILLE; + } + public static function ANTARCTICAMACQUARIE(): Timezone + { + if (!isset(self::$ANTARCTICAMACQUARIE)) { + self::$ANTARCTICAMACQUARIE = new Timezone('antarctica/macquarie'); + } + return self::$ANTARCTICAMACQUARIE; + } + public static function ANTARCTICAMAWSON(): Timezone + { + if (!isset(self::$ANTARCTICAMAWSON)) { + self::$ANTARCTICAMAWSON = new Timezone('antarctica/mawson'); + } + return self::$ANTARCTICAMAWSON; + } + public static function ANTARCTICAMCMURDO(): Timezone + { + if (!isset(self::$ANTARCTICAMCMURDO)) { + self::$ANTARCTICAMCMURDO = new Timezone('antarctica/mcmurdo'); + } + return self::$ANTARCTICAMCMURDO; + } + public static function ANTARCTICAPALMER(): Timezone + { + if (!isset(self::$ANTARCTICAPALMER)) { + self::$ANTARCTICAPALMER = new Timezone('antarctica/palmer'); + } + return self::$ANTARCTICAPALMER; + } + public static function ANTARCTICAROTHERA(): Timezone + { + if (!isset(self::$ANTARCTICAROTHERA)) { + self::$ANTARCTICAROTHERA = new Timezone('antarctica/rothera'); + } + return self::$ANTARCTICAROTHERA; + } + public static function ANTARCTICASYOWA(): Timezone + { + if (!isset(self::$ANTARCTICASYOWA)) { + self::$ANTARCTICASYOWA = new Timezone('antarctica/syowa'); + } + return self::$ANTARCTICASYOWA; + } + public static function ANTARCTICATROLL(): Timezone + { + if (!isset(self::$ANTARCTICATROLL)) { + self::$ANTARCTICATROLL = new Timezone('antarctica/troll'); + } + return self::$ANTARCTICATROLL; + } + public static function ANTARCTICAVOSTOK(): Timezone + { + if (!isset(self::$ANTARCTICAVOSTOK)) { + self::$ANTARCTICAVOSTOK = new Timezone('antarctica/vostok'); + } + return self::$ANTARCTICAVOSTOK; + } + public static function ARCTICLONGYEARBYEN(): Timezone + { + if (!isset(self::$ARCTICLONGYEARBYEN)) { + self::$ARCTICLONGYEARBYEN = new Timezone('arctic/longyearbyen'); + } + return self::$ARCTICLONGYEARBYEN; + } + public static function ASIAADEN(): Timezone + { + if (!isset(self::$ASIAADEN)) { + self::$ASIAADEN = new Timezone('asia/aden'); + } + return self::$ASIAADEN; + } + public static function ASIAALMATY(): Timezone + { + if (!isset(self::$ASIAALMATY)) { + self::$ASIAALMATY = new Timezone('asia/almaty'); + } + return self::$ASIAALMATY; + } + public static function ASIAAMMAN(): Timezone + { + if (!isset(self::$ASIAAMMAN)) { + self::$ASIAAMMAN = new Timezone('asia/amman'); + } + return self::$ASIAAMMAN; + } + public static function ASIAANADYR(): Timezone + { + if (!isset(self::$ASIAANADYR)) { + self::$ASIAANADYR = new Timezone('asia/anadyr'); + } + return self::$ASIAANADYR; + } + public static function ASIAAQTAU(): Timezone + { + if (!isset(self::$ASIAAQTAU)) { + self::$ASIAAQTAU = new Timezone('asia/aqtau'); + } + return self::$ASIAAQTAU; + } + public static function ASIAAQTOBE(): Timezone + { + if (!isset(self::$ASIAAQTOBE)) { + self::$ASIAAQTOBE = new Timezone('asia/aqtobe'); + } + return self::$ASIAAQTOBE; + } + public static function ASIAASHGABAT(): Timezone + { + if (!isset(self::$ASIAASHGABAT)) { + self::$ASIAASHGABAT = new Timezone('asia/ashgabat'); + } + return self::$ASIAASHGABAT; + } + public static function ASIAATYRAU(): Timezone + { + if (!isset(self::$ASIAATYRAU)) { + self::$ASIAATYRAU = new Timezone('asia/atyrau'); + } + return self::$ASIAATYRAU; + } + public static function ASIABAGHDAD(): Timezone + { + if (!isset(self::$ASIABAGHDAD)) { + self::$ASIABAGHDAD = new Timezone('asia/baghdad'); + } + return self::$ASIABAGHDAD; + } + public static function ASIABAHRAIN(): Timezone + { + if (!isset(self::$ASIABAHRAIN)) { + self::$ASIABAHRAIN = new Timezone('asia/bahrain'); + } + return self::$ASIABAHRAIN; + } + public static function ASIABAKU(): Timezone + { + if (!isset(self::$ASIABAKU)) { + self::$ASIABAKU = new Timezone('asia/baku'); + } + return self::$ASIABAKU; + } + public static function ASIABANGKOK(): Timezone + { + if (!isset(self::$ASIABANGKOK)) { + self::$ASIABANGKOK = new Timezone('asia/bangkok'); + } + return self::$ASIABANGKOK; + } + public static function ASIABARNAUL(): Timezone + { + if (!isset(self::$ASIABARNAUL)) { + self::$ASIABARNAUL = new Timezone('asia/barnaul'); + } + return self::$ASIABARNAUL; + } + public static function ASIABEIRUT(): Timezone + { + if (!isset(self::$ASIABEIRUT)) { + self::$ASIABEIRUT = new Timezone('asia/beirut'); + } + return self::$ASIABEIRUT; + } + public static function ASIABISHKEK(): Timezone + { + if (!isset(self::$ASIABISHKEK)) { + self::$ASIABISHKEK = new Timezone('asia/bishkek'); + } + return self::$ASIABISHKEK; + } + public static function ASIABRUNEI(): Timezone + { + if (!isset(self::$ASIABRUNEI)) { + self::$ASIABRUNEI = new Timezone('asia/brunei'); + } + return self::$ASIABRUNEI; + } + public static function ASIACHITA(): Timezone + { + if (!isset(self::$ASIACHITA)) { + self::$ASIACHITA = new Timezone('asia/chita'); + } + return self::$ASIACHITA; + } + public static function ASIACOLOMBO(): Timezone + { + if (!isset(self::$ASIACOLOMBO)) { + self::$ASIACOLOMBO = new Timezone('asia/colombo'); + } + return self::$ASIACOLOMBO; + } + public static function ASIADAMASCUS(): Timezone + { + if (!isset(self::$ASIADAMASCUS)) { + self::$ASIADAMASCUS = new Timezone('asia/damascus'); + } + return self::$ASIADAMASCUS; + } + public static function ASIADHAKA(): Timezone + { + if (!isset(self::$ASIADHAKA)) { + self::$ASIADHAKA = new Timezone('asia/dhaka'); + } + return self::$ASIADHAKA; + } + public static function ASIADILI(): Timezone + { + if (!isset(self::$ASIADILI)) { + self::$ASIADILI = new Timezone('asia/dili'); + } + return self::$ASIADILI; + } + public static function ASIADUBAI(): Timezone + { + if (!isset(self::$ASIADUBAI)) { + self::$ASIADUBAI = new Timezone('asia/dubai'); + } + return self::$ASIADUBAI; + } + public static function ASIADUSHANBE(): Timezone + { + if (!isset(self::$ASIADUSHANBE)) { + self::$ASIADUSHANBE = new Timezone('asia/dushanbe'); + } + return self::$ASIADUSHANBE; + } + public static function ASIAFAMAGUSTA(): Timezone + { + if (!isset(self::$ASIAFAMAGUSTA)) { + self::$ASIAFAMAGUSTA = new Timezone('asia/famagusta'); + } + return self::$ASIAFAMAGUSTA; + } + public static function ASIAGAZA(): Timezone + { + if (!isset(self::$ASIAGAZA)) { + self::$ASIAGAZA = new Timezone('asia/gaza'); + } + return self::$ASIAGAZA; + } + public static function ASIAHEBRON(): Timezone + { + if (!isset(self::$ASIAHEBRON)) { + self::$ASIAHEBRON = new Timezone('asia/hebron'); + } + return self::$ASIAHEBRON; + } + public static function ASIAHOCHIMINH(): Timezone + { + if (!isset(self::$ASIAHOCHIMINH)) { + self::$ASIAHOCHIMINH = new Timezone('asia/ho_chi_minh'); + } + return self::$ASIAHOCHIMINH; + } + public static function ASIAHONGKONG(): Timezone + { + if (!isset(self::$ASIAHONGKONG)) { + self::$ASIAHONGKONG = new Timezone('asia/hong_kong'); + } + return self::$ASIAHONGKONG; + } + public static function ASIAHOVD(): Timezone + { + if (!isset(self::$ASIAHOVD)) { + self::$ASIAHOVD = new Timezone('asia/hovd'); + } + return self::$ASIAHOVD; + } + public static function ASIAIRKUTSK(): Timezone + { + if (!isset(self::$ASIAIRKUTSK)) { + self::$ASIAIRKUTSK = new Timezone('asia/irkutsk'); + } + return self::$ASIAIRKUTSK; + } + public static function ASIAJAKARTA(): Timezone + { + if (!isset(self::$ASIAJAKARTA)) { + self::$ASIAJAKARTA = new Timezone('asia/jakarta'); + } + return self::$ASIAJAKARTA; + } + public static function ASIAJAYAPURA(): Timezone + { + if (!isset(self::$ASIAJAYAPURA)) { + self::$ASIAJAYAPURA = new Timezone('asia/jayapura'); + } + return self::$ASIAJAYAPURA; + } + public static function ASIAJERUSALEM(): Timezone + { + if (!isset(self::$ASIAJERUSALEM)) { + self::$ASIAJERUSALEM = new Timezone('asia/jerusalem'); + } + return self::$ASIAJERUSALEM; + } + public static function ASIAKABUL(): Timezone + { + if (!isset(self::$ASIAKABUL)) { + self::$ASIAKABUL = new Timezone('asia/kabul'); + } + return self::$ASIAKABUL; + } + public static function ASIAKAMCHATKA(): Timezone + { + if (!isset(self::$ASIAKAMCHATKA)) { + self::$ASIAKAMCHATKA = new Timezone('asia/kamchatka'); + } + return self::$ASIAKAMCHATKA; + } + public static function ASIAKARACHI(): Timezone + { + if (!isset(self::$ASIAKARACHI)) { + self::$ASIAKARACHI = new Timezone('asia/karachi'); + } + return self::$ASIAKARACHI; + } + public static function ASIAKATHMANDU(): Timezone + { + if (!isset(self::$ASIAKATHMANDU)) { + self::$ASIAKATHMANDU = new Timezone('asia/kathmandu'); + } + return self::$ASIAKATHMANDU; + } + public static function ASIAKHANDYGA(): Timezone + { + if (!isset(self::$ASIAKHANDYGA)) { + self::$ASIAKHANDYGA = new Timezone('asia/khandyga'); + } + return self::$ASIAKHANDYGA; + } + public static function ASIAKOLKATA(): Timezone + { + if (!isset(self::$ASIAKOLKATA)) { + self::$ASIAKOLKATA = new Timezone('asia/kolkata'); + } + return self::$ASIAKOLKATA; + } + public static function ASIAKRASNOYARSK(): Timezone + { + if (!isset(self::$ASIAKRASNOYARSK)) { + self::$ASIAKRASNOYARSK = new Timezone('asia/krasnoyarsk'); + } + return self::$ASIAKRASNOYARSK; + } + public static function ASIAKUALALUMPUR(): Timezone + { + if (!isset(self::$ASIAKUALALUMPUR)) { + self::$ASIAKUALALUMPUR = new Timezone('asia/kuala_lumpur'); + } + return self::$ASIAKUALALUMPUR; + } + public static function ASIAKUCHING(): Timezone + { + if (!isset(self::$ASIAKUCHING)) { + self::$ASIAKUCHING = new Timezone('asia/kuching'); + } + return self::$ASIAKUCHING; + } + public static function ASIAKUWAIT(): Timezone + { + if (!isset(self::$ASIAKUWAIT)) { + self::$ASIAKUWAIT = new Timezone('asia/kuwait'); + } + return self::$ASIAKUWAIT; + } + public static function ASIAMACAU(): Timezone + { + if (!isset(self::$ASIAMACAU)) { + self::$ASIAMACAU = new Timezone('asia/macau'); + } + return self::$ASIAMACAU; + } + public static function ASIAMAGADAN(): Timezone + { + if (!isset(self::$ASIAMAGADAN)) { + self::$ASIAMAGADAN = new Timezone('asia/magadan'); + } + return self::$ASIAMAGADAN; + } + public static function ASIAMAKASSAR(): Timezone + { + if (!isset(self::$ASIAMAKASSAR)) { + self::$ASIAMAKASSAR = new Timezone('asia/makassar'); + } + return self::$ASIAMAKASSAR; + } + public static function ASIAMANILA(): Timezone + { + if (!isset(self::$ASIAMANILA)) { + self::$ASIAMANILA = new Timezone('asia/manila'); + } + return self::$ASIAMANILA; + } + public static function ASIAMUSCAT(): Timezone + { + if (!isset(self::$ASIAMUSCAT)) { + self::$ASIAMUSCAT = new Timezone('asia/muscat'); + } + return self::$ASIAMUSCAT; + } + public static function ASIANICOSIA(): Timezone + { + if (!isset(self::$ASIANICOSIA)) { + self::$ASIANICOSIA = new Timezone('asia/nicosia'); + } + return self::$ASIANICOSIA; + } + public static function ASIANOVOKUZNETSK(): Timezone + { + if (!isset(self::$ASIANOVOKUZNETSK)) { + self::$ASIANOVOKUZNETSK = new Timezone('asia/novokuznetsk'); + } + return self::$ASIANOVOKUZNETSK; + } + public static function ASIANOVOSIBIRSK(): Timezone + { + if (!isset(self::$ASIANOVOSIBIRSK)) { + self::$ASIANOVOSIBIRSK = new Timezone('asia/novosibirsk'); + } + return self::$ASIANOVOSIBIRSK; + } + public static function ASIAOMSK(): Timezone + { + if (!isset(self::$ASIAOMSK)) { + self::$ASIAOMSK = new Timezone('asia/omsk'); + } + return self::$ASIAOMSK; + } + public static function ASIAORAL(): Timezone + { + if (!isset(self::$ASIAORAL)) { + self::$ASIAORAL = new Timezone('asia/oral'); + } + return self::$ASIAORAL; + } + public static function ASIAPHNOMPENH(): Timezone + { + if (!isset(self::$ASIAPHNOMPENH)) { + self::$ASIAPHNOMPENH = new Timezone('asia/phnom_penh'); + } + return self::$ASIAPHNOMPENH; + } + public static function ASIAPONTIANAK(): Timezone + { + if (!isset(self::$ASIAPONTIANAK)) { + self::$ASIAPONTIANAK = new Timezone('asia/pontianak'); + } + return self::$ASIAPONTIANAK; + } + public static function ASIAPYONGYANG(): Timezone + { + if (!isset(self::$ASIAPYONGYANG)) { + self::$ASIAPYONGYANG = new Timezone('asia/pyongyang'); + } + return self::$ASIAPYONGYANG; + } + public static function ASIAQATAR(): Timezone + { + if (!isset(self::$ASIAQATAR)) { + self::$ASIAQATAR = new Timezone('asia/qatar'); + } + return self::$ASIAQATAR; + } + public static function ASIAQOSTANAY(): Timezone + { + if (!isset(self::$ASIAQOSTANAY)) { + self::$ASIAQOSTANAY = new Timezone('asia/qostanay'); + } + return self::$ASIAQOSTANAY; + } + public static function ASIAQYZYLORDA(): Timezone + { + if (!isset(self::$ASIAQYZYLORDA)) { + self::$ASIAQYZYLORDA = new Timezone('asia/qyzylorda'); + } + return self::$ASIAQYZYLORDA; + } + public static function ASIARIYADH(): Timezone + { + if (!isset(self::$ASIARIYADH)) { + self::$ASIARIYADH = new Timezone('asia/riyadh'); + } + return self::$ASIARIYADH; + } + public static function ASIASAKHALIN(): Timezone + { + if (!isset(self::$ASIASAKHALIN)) { + self::$ASIASAKHALIN = new Timezone('asia/sakhalin'); + } + return self::$ASIASAKHALIN; + } + public static function ASIASAMARKAND(): Timezone + { + if (!isset(self::$ASIASAMARKAND)) { + self::$ASIASAMARKAND = new Timezone('asia/samarkand'); + } + return self::$ASIASAMARKAND; + } + public static function ASIASEOUL(): Timezone + { + if (!isset(self::$ASIASEOUL)) { + self::$ASIASEOUL = new Timezone('asia/seoul'); + } + return self::$ASIASEOUL; + } + public static function ASIASHANGHAI(): Timezone + { + if (!isset(self::$ASIASHANGHAI)) { + self::$ASIASHANGHAI = new Timezone('asia/shanghai'); + } + return self::$ASIASHANGHAI; + } + public static function ASIASINGAPORE(): Timezone + { + if (!isset(self::$ASIASINGAPORE)) { + self::$ASIASINGAPORE = new Timezone('asia/singapore'); + } + return self::$ASIASINGAPORE; + } + public static function ASIASREDNEKOLYMSK(): Timezone + { + if (!isset(self::$ASIASREDNEKOLYMSK)) { + self::$ASIASREDNEKOLYMSK = new Timezone('asia/srednekolymsk'); + } + return self::$ASIASREDNEKOLYMSK; + } + public static function ASIATAIPEI(): Timezone + { + if (!isset(self::$ASIATAIPEI)) { + self::$ASIATAIPEI = new Timezone('asia/taipei'); + } + return self::$ASIATAIPEI; + } + public static function ASIATASHKENT(): Timezone + { + if (!isset(self::$ASIATASHKENT)) { + self::$ASIATASHKENT = new Timezone('asia/tashkent'); + } + return self::$ASIATASHKENT; + } + public static function ASIATBILISI(): Timezone + { + if (!isset(self::$ASIATBILISI)) { + self::$ASIATBILISI = new Timezone('asia/tbilisi'); + } + return self::$ASIATBILISI; + } + public static function ASIATEHRAN(): Timezone + { + if (!isset(self::$ASIATEHRAN)) { + self::$ASIATEHRAN = new Timezone('asia/tehran'); + } + return self::$ASIATEHRAN; + } + public static function ASIATHIMPHU(): Timezone + { + if (!isset(self::$ASIATHIMPHU)) { + self::$ASIATHIMPHU = new Timezone('asia/thimphu'); + } + return self::$ASIATHIMPHU; + } + public static function ASIATOKYO(): Timezone + { + if (!isset(self::$ASIATOKYO)) { + self::$ASIATOKYO = new Timezone('asia/tokyo'); + } + return self::$ASIATOKYO; + } + public static function ASIATOMSK(): Timezone + { + if (!isset(self::$ASIATOMSK)) { + self::$ASIATOMSK = new Timezone('asia/tomsk'); + } + return self::$ASIATOMSK; + } + public static function ASIAULAANBAATAR(): Timezone + { + if (!isset(self::$ASIAULAANBAATAR)) { + self::$ASIAULAANBAATAR = new Timezone('asia/ulaanbaatar'); + } + return self::$ASIAULAANBAATAR; + } + public static function ASIAURUMQI(): Timezone + { + if (!isset(self::$ASIAURUMQI)) { + self::$ASIAURUMQI = new Timezone('asia/urumqi'); + } + return self::$ASIAURUMQI; + } + public static function ASIAUSTNERA(): Timezone + { + if (!isset(self::$ASIAUSTNERA)) { + self::$ASIAUSTNERA = new Timezone('asia/ust-nera'); + } + return self::$ASIAUSTNERA; + } + public static function ASIAVIENTIANE(): Timezone + { + if (!isset(self::$ASIAVIENTIANE)) { + self::$ASIAVIENTIANE = new Timezone('asia/vientiane'); + } + return self::$ASIAVIENTIANE; + } + public static function ASIAVLADIVOSTOK(): Timezone + { + if (!isset(self::$ASIAVLADIVOSTOK)) { + self::$ASIAVLADIVOSTOK = new Timezone('asia/vladivostok'); + } + return self::$ASIAVLADIVOSTOK; + } + public static function ASIAYAKUTSK(): Timezone + { + if (!isset(self::$ASIAYAKUTSK)) { + self::$ASIAYAKUTSK = new Timezone('asia/yakutsk'); + } + return self::$ASIAYAKUTSK; + } + public static function ASIAYANGON(): Timezone + { + if (!isset(self::$ASIAYANGON)) { + self::$ASIAYANGON = new Timezone('asia/yangon'); + } + return self::$ASIAYANGON; + } + public static function ASIAYEKATERINBURG(): Timezone + { + if (!isset(self::$ASIAYEKATERINBURG)) { + self::$ASIAYEKATERINBURG = new Timezone('asia/yekaterinburg'); + } + return self::$ASIAYEKATERINBURG; + } + public static function ASIAYEREVAN(): Timezone + { + if (!isset(self::$ASIAYEREVAN)) { + self::$ASIAYEREVAN = new Timezone('asia/yerevan'); + } + return self::$ASIAYEREVAN; + } + public static function ATLANTICAZORES(): Timezone + { + if (!isset(self::$ATLANTICAZORES)) { + self::$ATLANTICAZORES = new Timezone('atlantic/azores'); + } + return self::$ATLANTICAZORES; + } + public static function ATLANTICBERMUDA(): Timezone + { + if (!isset(self::$ATLANTICBERMUDA)) { + self::$ATLANTICBERMUDA = new Timezone('atlantic/bermuda'); + } + return self::$ATLANTICBERMUDA; + } + public static function ATLANTICCANARY(): Timezone + { + if (!isset(self::$ATLANTICCANARY)) { + self::$ATLANTICCANARY = new Timezone('atlantic/canary'); + } + return self::$ATLANTICCANARY; + } + public static function ATLANTICCAPEVERDE(): Timezone + { + if (!isset(self::$ATLANTICCAPEVERDE)) { + self::$ATLANTICCAPEVERDE = new Timezone('atlantic/cape_verde'); + } + return self::$ATLANTICCAPEVERDE; + } + public static function ATLANTICFAROE(): Timezone + { + if (!isset(self::$ATLANTICFAROE)) { + self::$ATLANTICFAROE = new Timezone('atlantic/faroe'); + } + return self::$ATLANTICFAROE; + } + public static function ATLANTICMADEIRA(): Timezone + { + if (!isset(self::$ATLANTICMADEIRA)) { + self::$ATLANTICMADEIRA = new Timezone('atlantic/madeira'); + } + return self::$ATLANTICMADEIRA; + } + public static function ATLANTICREYKJAVIK(): Timezone + { + if (!isset(self::$ATLANTICREYKJAVIK)) { + self::$ATLANTICREYKJAVIK = new Timezone('atlantic/reykjavik'); + } + return self::$ATLANTICREYKJAVIK; + } + public static function ATLANTICSOUTHGEORGIA(): Timezone + { + if (!isset(self::$ATLANTICSOUTHGEORGIA)) { + self::$ATLANTICSOUTHGEORGIA = new Timezone('atlantic/south_georgia'); + } + return self::$ATLANTICSOUTHGEORGIA; + } + public static function ATLANTICSTHELENA(): Timezone + { + if (!isset(self::$ATLANTICSTHELENA)) { + self::$ATLANTICSTHELENA = new Timezone('atlantic/st_helena'); + } + return self::$ATLANTICSTHELENA; + } + public static function ATLANTICSTANLEY(): Timezone + { + if (!isset(self::$ATLANTICSTANLEY)) { + self::$ATLANTICSTANLEY = new Timezone('atlantic/stanley'); + } + return self::$ATLANTICSTANLEY; + } + public static function AUSTRALIAADELAIDE(): Timezone + { + if (!isset(self::$AUSTRALIAADELAIDE)) { + self::$AUSTRALIAADELAIDE = new Timezone('australia/adelaide'); + } + return self::$AUSTRALIAADELAIDE; + } + public static function AUSTRALIABRISBANE(): Timezone + { + if (!isset(self::$AUSTRALIABRISBANE)) { + self::$AUSTRALIABRISBANE = new Timezone('australia/brisbane'); + } + return self::$AUSTRALIABRISBANE; + } + public static function AUSTRALIABROKENHILL(): Timezone + { + if (!isset(self::$AUSTRALIABROKENHILL)) { + self::$AUSTRALIABROKENHILL = new Timezone('australia/broken_hill'); + } + return self::$AUSTRALIABROKENHILL; + } + public static function AUSTRALIADARWIN(): Timezone + { + if (!isset(self::$AUSTRALIADARWIN)) { + self::$AUSTRALIADARWIN = new Timezone('australia/darwin'); + } + return self::$AUSTRALIADARWIN; + } + public static function AUSTRALIAEUCLA(): Timezone + { + if (!isset(self::$AUSTRALIAEUCLA)) { + self::$AUSTRALIAEUCLA = new Timezone('australia/eucla'); + } + return self::$AUSTRALIAEUCLA; + } + public static function AUSTRALIAHOBART(): Timezone + { + if (!isset(self::$AUSTRALIAHOBART)) { + self::$AUSTRALIAHOBART = new Timezone('australia/hobart'); + } + return self::$AUSTRALIAHOBART; + } + public static function AUSTRALIALINDEMAN(): Timezone + { + if (!isset(self::$AUSTRALIALINDEMAN)) { + self::$AUSTRALIALINDEMAN = new Timezone('australia/lindeman'); + } + return self::$AUSTRALIALINDEMAN; + } + public static function AUSTRALIALORDHOWE(): Timezone + { + if (!isset(self::$AUSTRALIALORDHOWE)) { + self::$AUSTRALIALORDHOWE = new Timezone('australia/lord_howe'); + } + return self::$AUSTRALIALORDHOWE; + } + public static function AUSTRALIAMELBOURNE(): Timezone + { + if (!isset(self::$AUSTRALIAMELBOURNE)) { + self::$AUSTRALIAMELBOURNE = new Timezone('australia/melbourne'); + } + return self::$AUSTRALIAMELBOURNE; + } + public static function AUSTRALIAPERTH(): Timezone + { + if (!isset(self::$AUSTRALIAPERTH)) { + self::$AUSTRALIAPERTH = new Timezone('australia/perth'); + } + return self::$AUSTRALIAPERTH; + } + public static function AUSTRALIASYDNEY(): Timezone + { + if (!isset(self::$AUSTRALIASYDNEY)) { + self::$AUSTRALIASYDNEY = new Timezone('australia/sydney'); + } + return self::$AUSTRALIASYDNEY; + } + public static function EUROPEAMSTERDAM(): Timezone + { + if (!isset(self::$EUROPEAMSTERDAM)) { + self::$EUROPEAMSTERDAM = new Timezone('europe/amsterdam'); + } + return self::$EUROPEAMSTERDAM; + } + public static function EUROPEANDORRA(): Timezone + { + if (!isset(self::$EUROPEANDORRA)) { + self::$EUROPEANDORRA = new Timezone('europe/andorra'); + } + return self::$EUROPEANDORRA; + } + public static function EUROPEASTRAKHAN(): Timezone + { + if (!isset(self::$EUROPEASTRAKHAN)) { + self::$EUROPEASTRAKHAN = new Timezone('europe/astrakhan'); + } + return self::$EUROPEASTRAKHAN; + } + public static function EUROPEATHENS(): Timezone + { + if (!isset(self::$EUROPEATHENS)) { + self::$EUROPEATHENS = new Timezone('europe/athens'); + } + return self::$EUROPEATHENS; + } + public static function EUROPEBELGRADE(): Timezone + { + if (!isset(self::$EUROPEBELGRADE)) { + self::$EUROPEBELGRADE = new Timezone('europe/belgrade'); + } + return self::$EUROPEBELGRADE; + } + public static function EUROPEBERLIN(): Timezone + { + if (!isset(self::$EUROPEBERLIN)) { + self::$EUROPEBERLIN = new Timezone('europe/berlin'); + } + return self::$EUROPEBERLIN; + } + public static function EUROPEBRATISLAVA(): Timezone + { + if (!isset(self::$EUROPEBRATISLAVA)) { + self::$EUROPEBRATISLAVA = new Timezone('europe/bratislava'); + } + return self::$EUROPEBRATISLAVA; + } + public static function EUROPEBRUSSELS(): Timezone + { + if (!isset(self::$EUROPEBRUSSELS)) { + self::$EUROPEBRUSSELS = new Timezone('europe/brussels'); + } + return self::$EUROPEBRUSSELS; + } + public static function EUROPEBUCHAREST(): Timezone + { + if (!isset(self::$EUROPEBUCHAREST)) { + self::$EUROPEBUCHAREST = new Timezone('europe/bucharest'); + } + return self::$EUROPEBUCHAREST; + } + public static function EUROPEBUDAPEST(): Timezone + { + if (!isset(self::$EUROPEBUDAPEST)) { + self::$EUROPEBUDAPEST = new Timezone('europe/budapest'); + } + return self::$EUROPEBUDAPEST; + } + public static function EUROPEBUSINGEN(): Timezone + { + if (!isset(self::$EUROPEBUSINGEN)) { + self::$EUROPEBUSINGEN = new Timezone('europe/busingen'); + } + return self::$EUROPEBUSINGEN; + } + public static function EUROPECHISINAU(): Timezone + { + if (!isset(self::$EUROPECHISINAU)) { + self::$EUROPECHISINAU = new Timezone('europe/chisinau'); + } + return self::$EUROPECHISINAU; + } + public static function EUROPECOPENHAGEN(): Timezone + { + if (!isset(self::$EUROPECOPENHAGEN)) { + self::$EUROPECOPENHAGEN = new Timezone('europe/copenhagen'); + } + return self::$EUROPECOPENHAGEN; + } + public static function EUROPEDUBLIN(): Timezone + { + if (!isset(self::$EUROPEDUBLIN)) { + self::$EUROPEDUBLIN = new Timezone('europe/dublin'); + } + return self::$EUROPEDUBLIN; + } + public static function EUROPEGIBRALTAR(): Timezone + { + if (!isset(self::$EUROPEGIBRALTAR)) { + self::$EUROPEGIBRALTAR = new Timezone('europe/gibraltar'); + } + return self::$EUROPEGIBRALTAR; + } + public static function EUROPEGUERNSEY(): Timezone + { + if (!isset(self::$EUROPEGUERNSEY)) { + self::$EUROPEGUERNSEY = new Timezone('europe/guernsey'); + } + return self::$EUROPEGUERNSEY; + } + public static function EUROPEHELSINKI(): Timezone + { + if (!isset(self::$EUROPEHELSINKI)) { + self::$EUROPEHELSINKI = new Timezone('europe/helsinki'); + } + return self::$EUROPEHELSINKI; + } + public static function EUROPEISLEOFMAN(): Timezone + { + if (!isset(self::$EUROPEISLEOFMAN)) { + self::$EUROPEISLEOFMAN = new Timezone('europe/isle_of_man'); + } + return self::$EUROPEISLEOFMAN; + } + public static function EUROPEISTANBUL(): Timezone + { + if (!isset(self::$EUROPEISTANBUL)) { + self::$EUROPEISTANBUL = new Timezone('europe/istanbul'); + } + return self::$EUROPEISTANBUL; + } + public static function EUROPEJERSEY(): Timezone + { + if (!isset(self::$EUROPEJERSEY)) { + self::$EUROPEJERSEY = new Timezone('europe/jersey'); + } + return self::$EUROPEJERSEY; + } + public static function EUROPEKALININGRAD(): Timezone + { + if (!isset(self::$EUROPEKALININGRAD)) { + self::$EUROPEKALININGRAD = new Timezone('europe/kaliningrad'); + } + return self::$EUROPEKALININGRAD; + } + public static function EUROPEKIROV(): Timezone + { + if (!isset(self::$EUROPEKIROV)) { + self::$EUROPEKIROV = new Timezone('europe/kirov'); + } + return self::$EUROPEKIROV; + } + public static function EUROPEKYIV(): Timezone + { + if (!isset(self::$EUROPEKYIV)) { + self::$EUROPEKYIV = new Timezone('europe/kyiv'); + } + return self::$EUROPEKYIV; + } + public static function EUROPELISBON(): Timezone + { + if (!isset(self::$EUROPELISBON)) { + self::$EUROPELISBON = new Timezone('europe/lisbon'); + } + return self::$EUROPELISBON; + } + public static function EUROPELJUBLJANA(): Timezone + { + if (!isset(self::$EUROPELJUBLJANA)) { + self::$EUROPELJUBLJANA = new Timezone('europe/ljubljana'); + } + return self::$EUROPELJUBLJANA; + } + public static function EUROPELONDON(): Timezone + { + if (!isset(self::$EUROPELONDON)) { + self::$EUROPELONDON = new Timezone('europe/london'); + } + return self::$EUROPELONDON; + } + public static function EUROPELUXEMBOURG(): Timezone + { + if (!isset(self::$EUROPELUXEMBOURG)) { + self::$EUROPELUXEMBOURG = new Timezone('europe/luxembourg'); + } + return self::$EUROPELUXEMBOURG; + } + public static function EUROPEMADRID(): Timezone + { + if (!isset(self::$EUROPEMADRID)) { + self::$EUROPEMADRID = new Timezone('europe/madrid'); + } + return self::$EUROPEMADRID; + } + public static function EUROPEMALTA(): Timezone + { + if (!isset(self::$EUROPEMALTA)) { + self::$EUROPEMALTA = new Timezone('europe/malta'); + } + return self::$EUROPEMALTA; + } + public static function EUROPEMARIEHAMN(): Timezone + { + if (!isset(self::$EUROPEMARIEHAMN)) { + self::$EUROPEMARIEHAMN = new Timezone('europe/mariehamn'); + } + return self::$EUROPEMARIEHAMN; + } + public static function EUROPEMINSK(): Timezone + { + if (!isset(self::$EUROPEMINSK)) { + self::$EUROPEMINSK = new Timezone('europe/minsk'); + } + return self::$EUROPEMINSK; + } + public static function EUROPEMONACO(): Timezone + { + if (!isset(self::$EUROPEMONACO)) { + self::$EUROPEMONACO = new Timezone('europe/monaco'); + } + return self::$EUROPEMONACO; + } + public static function EUROPEMOSCOW(): Timezone + { + if (!isset(self::$EUROPEMOSCOW)) { + self::$EUROPEMOSCOW = new Timezone('europe/moscow'); + } + return self::$EUROPEMOSCOW; + } + public static function EUROPEOSLO(): Timezone + { + if (!isset(self::$EUROPEOSLO)) { + self::$EUROPEOSLO = new Timezone('europe/oslo'); + } + return self::$EUROPEOSLO; + } + public static function EUROPEPARIS(): Timezone + { + if (!isset(self::$EUROPEPARIS)) { + self::$EUROPEPARIS = new Timezone('europe/paris'); + } + return self::$EUROPEPARIS; + } + public static function EUROPEPODGORICA(): Timezone + { + if (!isset(self::$EUROPEPODGORICA)) { + self::$EUROPEPODGORICA = new Timezone('europe/podgorica'); + } + return self::$EUROPEPODGORICA; + } + public static function EUROPEPRAGUE(): Timezone + { + if (!isset(self::$EUROPEPRAGUE)) { + self::$EUROPEPRAGUE = new Timezone('europe/prague'); + } + return self::$EUROPEPRAGUE; + } + public static function EUROPERIGA(): Timezone + { + if (!isset(self::$EUROPERIGA)) { + self::$EUROPERIGA = new Timezone('europe/riga'); + } + return self::$EUROPERIGA; + } + public static function EUROPEROME(): Timezone + { + if (!isset(self::$EUROPEROME)) { + self::$EUROPEROME = new Timezone('europe/rome'); + } + return self::$EUROPEROME; + } + public static function EUROPESAMARA(): Timezone + { + if (!isset(self::$EUROPESAMARA)) { + self::$EUROPESAMARA = new Timezone('europe/samara'); + } + return self::$EUROPESAMARA; + } + public static function EUROPESANMARINO(): Timezone + { + if (!isset(self::$EUROPESANMARINO)) { + self::$EUROPESANMARINO = new Timezone('europe/san_marino'); + } + return self::$EUROPESANMARINO; + } + public static function EUROPESARAJEVO(): Timezone + { + if (!isset(self::$EUROPESARAJEVO)) { + self::$EUROPESARAJEVO = new Timezone('europe/sarajevo'); + } + return self::$EUROPESARAJEVO; + } + public static function EUROPESARATOV(): Timezone + { + if (!isset(self::$EUROPESARATOV)) { + self::$EUROPESARATOV = new Timezone('europe/saratov'); + } + return self::$EUROPESARATOV; + } + public static function EUROPESIMFEROPOL(): Timezone + { + if (!isset(self::$EUROPESIMFEROPOL)) { + self::$EUROPESIMFEROPOL = new Timezone('europe/simferopol'); + } + return self::$EUROPESIMFEROPOL; + } + public static function EUROPESKOPJE(): Timezone + { + if (!isset(self::$EUROPESKOPJE)) { + self::$EUROPESKOPJE = new Timezone('europe/skopje'); + } + return self::$EUROPESKOPJE; + } + public static function EUROPESOFIA(): Timezone + { + if (!isset(self::$EUROPESOFIA)) { + self::$EUROPESOFIA = new Timezone('europe/sofia'); + } + return self::$EUROPESOFIA; + } + public static function EUROPESTOCKHOLM(): Timezone + { + if (!isset(self::$EUROPESTOCKHOLM)) { + self::$EUROPESTOCKHOLM = new Timezone('europe/stockholm'); + } + return self::$EUROPESTOCKHOLM; + } + public static function EUROPETALLINN(): Timezone + { + if (!isset(self::$EUROPETALLINN)) { + self::$EUROPETALLINN = new Timezone('europe/tallinn'); + } + return self::$EUROPETALLINN; + } + public static function EUROPETIRANE(): Timezone + { + if (!isset(self::$EUROPETIRANE)) { + self::$EUROPETIRANE = new Timezone('europe/tirane'); + } + return self::$EUROPETIRANE; + } + public static function EUROPEULYANOVSK(): Timezone + { + if (!isset(self::$EUROPEULYANOVSK)) { + self::$EUROPEULYANOVSK = new Timezone('europe/ulyanovsk'); + } + return self::$EUROPEULYANOVSK; + } + public static function EUROPEVADUZ(): Timezone + { + if (!isset(self::$EUROPEVADUZ)) { + self::$EUROPEVADUZ = new Timezone('europe/vaduz'); + } + return self::$EUROPEVADUZ; + } + public static function EUROPEVATICAN(): Timezone + { + if (!isset(self::$EUROPEVATICAN)) { + self::$EUROPEVATICAN = new Timezone('europe/vatican'); + } + return self::$EUROPEVATICAN; + } + public static function EUROPEVIENNA(): Timezone + { + if (!isset(self::$EUROPEVIENNA)) { + self::$EUROPEVIENNA = new Timezone('europe/vienna'); + } + return self::$EUROPEVIENNA; + } + public static function EUROPEVILNIUS(): Timezone + { + if (!isset(self::$EUROPEVILNIUS)) { + self::$EUROPEVILNIUS = new Timezone('europe/vilnius'); + } + return self::$EUROPEVILNIUS; + } + public static function EUROPEVOLGOGRAD(): Timezone + { + if (!isset(self::$EUROPEVOLGOGRAD)) { + self::$EUROPEVOLGOGRAD = new Timezone('europe/volgograd'); + } + return self::$EUROPEVOLGOGRAD; + } + public static function EUROPEWARSAW(): Timezone + { + if (!isset(self::$EUROPEWARSAW)) { + self::$EUROPEWARSAW = new Timezone('europe/warsaw'); + } + return self::$EUROPEWARSAW; + } + public static function EUROPEZAGREB(): Timezone + { + if (!isset(self::$EUROPEZAGREB)) { + self::$EUROPEZAGREB = new Timezone('europe/zagreb'); + } + return self::$EUROPEZAGREB; + } + public static function EUROPEZURICH(): Timezone + { + if (!isset(self::$EUROPEZURICH)) { + self::$EUROPEZURICH = new Timezone('europe/zurich'); + } + return self::$EUROPEZURICH; + } + public static function INDIANANTANANARIVO(): Timezone + { + if (!isset(self::$INDIANANTANANARIVO)) { + self::$INDIANANTANANARIVO = new Timezone('indian/antananarivo'); + } + return self::$INDIANANTANANARIVO; + } + public static function INDIANCHAGOS(): Timezone + { + if (!isset(self::$INDIANCHAGOS)) { + self::$INDIANCHAGOS = new Timezone('indian/chagos'); + } + return self::$INDIANCHAGOS; + } + public static function INDIANCHRISTMAS(): Timezone + { + if (!isset(self::$INDIANCHRISTMAS)) { + self::$INDIANCHRISTMAS = new Timezone('indian/christmas'); + } + return self::$INDIANCHRISTMAS; + } + public static function INDIANCOCOS(): Timezone + { + if (!isset(self::$INDIANCOCOS)) { + self::$INDIANCOCOS = new Timezone('indian/cocos'); + } + return self::$INDIANCOCOS; + } + public static function INDIANCOMORO(): Timezone + { + if (!isset(self::$INDIANCOMORO)) { + self::$INDIANCOMORO = new Timezone('indian/comoro'); + } + return self::$INDIANCOMORO; + } + public static function INDIANKERGUELEN(): Timezone + { + if (!isset(self::$INDIANKERGUELEN)) { + self::$INDIANKERGUELEN = new Timezone('indian/kerguelen'); + } + return self::$INDIANKERGUELEN; + } + public static function INDIANMAHE(): Timezone + { + if (!isset(self::$INDIANMAHE)) { + self::$INDIANMAHE = new Timezone('indian/mahe'); + } + return self::$INDIANMAHE; + } + public static function INDIANMALDIVES(): Timezone + { + if (!isset(self::$INDIANMALDIVES)) { + self::$INDIANMALDIVES = new Timezone('indian/maldives'); + } + return self::$INDIANMALDIVES; + } + public static function INDIANMAURITIUS(): Timezone + { + if (!isset(self::$INDIANMAURITIUS)) { + self::$INDIANMAURITIUS = new Timezone('indian/mauritius'); + } + return self::$INDIANMAURITIUS; + } + public static function INDIANMAYOTTE(): Timezone + { + if (!isset(self::$INDIANMAYOTTE)) { + self::$INDIANMAYOTTE = new Timezone('indian/mayotte'); + } + return self::$INDIANMAYOTTE; + } + public static function INDIANREUNION(): Timezone + { + if (!isset(self::$INDIANREUNION)) { + self::$INDIANREUNION = new Timezone('indian/reunion'); + } + return self::$INDIANREUNION; + } + public static function PACIFICAPIA(): Timezone + { + if (!isset(self::$PACIFICAPIA)) { + self::$PACIFICAPIA = new Timezone('pacific/apia'); + } + return self::$PACIFICAPIA; + } + public static function PACIFICAUCKLAND(): Timezone + { + if (!isset(self::$PACIFICAUCKLAND)) { + self::$PACIFICAUCKLAND = new Timezone('pacific/auckland'); + } + return self::$PACIFICAUCKLAND; + } + public static function PACIFICBOUGAINVILLE(): Timezone + { + if (!isset(self::$PACIFICBOUGAINVILLE)) { + self::$PACIFICBOUGAINVILLE = new Timezone('pacific/bougainville'); + } + return self::$PACIFICBOUGAINVILLE; + } + public static function PACIFICCHATHAM(): Timezone + { + if (!isset(self::$PACIFICCHATHAM)) { + self::$PACIFICCHATHAM = new Timezone('pacific/chatham'); + } + return self::$PACIFICCHATHAM; + } + public static function PACIFICCHUUK(): Timezone + { + if (!isset(self::$PACIFICCHUUK)) { + self::$PACIFICCHUUK = new Timezone('pacific/chuuk'); + } + return self::$PACIFICCHUUK; + } + public static function PACIFICEASTER(): Timezone + { + if (!isset(self::$PACIFICEASTER)) { + self::$PACIFICEASTER = new Timezone('pacific/easter'); + } + return self::$PACIFICEASTER; + } + public static function PACIFICEFATE(): Timezone + { + if (!isset(self::$PACIFICEFATE)) { + self::$PACIFICEFATE = new Timezone('pacific/efate'); + } + return self::$PACIFICEFATE; + } + public static function PACIFICFAKAOFO(): Timezone + { + if (!isset(self::$PACIFICFAKAOFO)) { + self::$PACIFICFAKAOFO = new Timezone('pacific/fakaofo'); + } + return self::$PACIFICFAKAOFO; + } + public static function PACIFICFIJI(): Timezone + { + if (!isset(self::$PACIFICFIJI)) { + self::$PACIFICFIJI = new Timezone('pacific/fiji'); + } + return self::$PACIFICFIJI; + } + public static function PACIFICFUNAFUTI(): Timezone + { + if (!isset(self::$PACIFICFUNAFUTI)) { + self::$PACIFICFUNAFUTI = new Timezone('pacific/funafuti'); + } + return self::$PACIFICFUNAFUTI; + } + public static function PACIFICGALAPAGOS(): Timezone + { + if (!isset(self::$PACIFICGALAPAGOS)) { + self::$PACIFICGALAPAGOS = new Timezone('pacific/galapagos'); + } + return self::$PACIFICGALAPAGOS; + } + public static function PACIFICGAMBIER(): Timezone + { + if (!isset(self::$PACIFICGAMBIER)) { + self::$PACIFICGAMBIER = new Timezone('pacific/gambier'); + } + return self::$PACIFICGAMBIER; + } + public static function PACIFICGUADALCANAL(): Timezone + { + if (!isset(self::$PACIFICGUADALCANAL)) { + self::$PACIFICGUADALCANAL = new Timezone('pacific/guadalcanal'); + } + return self::$PACIFICGUADALCANAL; + } + public static function PACIFICGUAM(): Timezone + { + if (!isset(self::$PACIFICGUAM)) { + self::$PACIFICGUAM = new Timezone('pacific/guam'); + } + return self::$PACIFICGUAM; + } + public static function PACIFICHONOLULU(): Timezone + { + if (!isset(self::$PACIFICHONOLULU)) { + self::$PACIFICHONOLULU = new Timezone('pacific/honolulu'); + } + return self::$PACIFICHONOLULU; + } + public static function PACIFICKANTON(): Timezone + { + if (!isset(self::$PACIFICKANTON)) { + self::$PACIFICKANTON = new Timezone('pacific/kanton'); + } + return self::$PACIFICKANTON; + } + public static function PACIFICKIRITIMATI(): Timezone + { + if (!isset(self::$PACIFICKIRITIMATI)) { + self::$PACIFICKIRITIMATI = new Timezone('pacific/kiritimati'); + } + return self::$PACIFICKIRITIMATI; + } + public static function PACIFICKOSRAE(): Timezone + { + if (!isset(self::$PACIFICKOSRAE)) { + self::$PACIFICKOSRAE = new Timezone('pacific/kosrae'); + } + return self::$PACIFICKOSRAE; + } + public static function PACIFICKWAJALEIN(): Timezone + { + if (!isset(self::$PACIFICKWAJALEIN)) { + self::$PACIFICKWAJALEIN = new Timezone('pacific/kwajalein'); + } + return self::$PACIFICKWAJALEIN; + } + public static function PACIFICMAJURO(): Timezone + { + if (!isset(self::$PACIFICMAJURO)) { + self::$PACIFICMAJURO = new Timezone('pacific/majuro'); + } + return self::$PACIFICMAJURO; + } + public static function PACIFICMARQUESAS(): Timezone + { + if (!isset(self::$PACIFICMARQUESAS)) { + self::$PACIFICMARQUESAS = new Timezone('pacific/marquesas'); + } + return self::$PACIFICMARQUESAS; + } + public static function PACIFICMIDWAY(): Timezone + { + if (!isset(self::$PACIFICMIDWAY)) { + self::$PACIFICMIDWAY = new Timezone('pacific/midway'); + } + return self::$PACIFICMIDWAY; + } + public static function PACIFICNAURU(): Timezone + { + if (!isset(self::$PACIFICNAURU)) { + self::$PACIFICNAURU = new Timezone('pacific/nauru'); + } + return self::$PACIFICNAURU; + } + public static function PACIFICNIUE(): Timezone + { + if (!isset(self::$PACIFICNIUE)) { + self::$PACIFICNIUE = new Timezone('pacific/niue'); + } + return self::$PACIFICNIUE; + } + public static function PACIFICNORFOLK(): Timezone + { + if (!isset(self::$PACIFICNORFOLK)) { + self::$PACIFICNORFOLK = new Timezone('pacific/norfolk'); + } + return self::$PACIFICNORFOLK; + } + public static function PACIFICNOUMEA(): Timezone + { + if (!isset(self::$PACIFICNOUMEA)) { + self::$PACIFICNOUMEA = new Timezone('pacific/noumea'); + } + return self::$PACIFICNOUMEA; + } + public static function PACIFICPAGOPAGO(): Timezone + { + if (!isset(self::$PACIFICPAGOPAGO)) { + self::$PACIFICPAGOPAGO = new Timezone('pacific/pago_pago'); + } + return self::$PACIFICPAGOPAGO; + } + public static function PACIFICPALAU(): Timezone + { + if (!isset(self::$PACIFICPALAU)) { + self::$PACIFICPALAU = new Timezone('pacific/palau'); + } + return self::$PACIFICPALAU; + } + public static function PACIFICPITCAIRN(): Timezone + { + if (!isset(self::$PACIFICPITCAIRN)) { + self::$PACIFICPITCAIRN = new Timezone('pacific/pitcairn'); + } + return self::$PACIFICPITCAIRN; + } + public static function PACIFICPOHNPEI(): Timezone + { + if (!isset(self::$PACIFICPOHNPEI)) { + self::$PACIFICPOHNPEI = new Timezone('pacific/pohnpei'); + } + return self::$PACIFICPOHNPEI; + } + public static function PACIFICPORTMORESBY(): Timezone + { + if (!isset(self::$PACIFICPORTMORESBY)) { + self::$PACIFICPORTMORESBY = new Timezone('pacific/port_moresby'); + } + return self::$PACIFICPORTMORESBY; + } + public static function PACIFICRAROTONGA(): Timezone + { + if (!isset(self::$PACIFICRAROTONGA)) { + self::$PACIFICRAROTONGA = new Timezone('pacific/rarotonga'); + } + return self::$PACIFICRAROTONGA; + } + public static function PACIFICSAIPAN(): Timezone + { + if (!isset(self::$PACIFICSAIPAN)) { + self::$PACIFICSAIPAN = new Timezone('pacific/saipan'); + } + return self::$PACIFICSAIPAN; + } + public static function PACIFICTAHITI(): Timezone + { + if (!isset(self::$PACIFICTAHITI)) { + self::$PACIFICTAHITI = new Timezone('pacific/tahiti'); + } + return self::$PACIFICTAHITI; + } + public static function PACIFICTARAWA(): Timezone + { + if (!isset(self::$PACIFICTARAWA)) { + self::$PACIFICTARAWA = new Timezone('pacific/tarawa'); + } + return self::$PACIFICTARAWA; + } + public static function PACIFICTONGATAPU(): Timezone + { + if (!isset(self::$PACIFICTONGATAPU)) { + self::$PACIFICTONGATAPU = new Timezone('pacific/tongatapu'); + } + return self::$PACIFICTONGATAPU; + } + public static function PACIFICWAKE(): Timezone + { + if (!isset(self::$PACIFICWAKE)) { + self::$PACIFICWAKE = new Timezone('pacific/wake'); + } + return self::$PACIFICWAKE; + } + public static function PACIFICWALLIS(): Timezone + { + if (!isset(self::$PACIFICWALLIS)) { + self::$PACIFICWALLIS = new Timezone('pacific/wallis'); + } + return self::$PACIFICWALLIS; + } + public static function UTC(): Timezone + { + if (!isset(self::$UTC)) { + self::$UTC = new Timezone('utc'); + } + return self::$UTC; + } +} \ No newline at end of file diff --git a/src/Appwrite/Services/Account.php b/src/Appwrite/Services/Account.php index bff0a00..6d45d4f 100644 --- a/src/Appwrite/Services/Account.php +++ b/src/Appwrite/Services/Account.php @@ -287,41 +287,6 @@ public function updateMFA(bool $mfa): array ); } - /** - * Add an authenticator app to be used as an MFA factor. Verify the - * authenticator using the [verify - * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) - * method. - * - * @param AuthenticatorType $type - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `createMFAAuthenticator` instead. - * @see Account::createMFAAuthenticator - */ - public function createMfaAuthenticator(AuthenticatorType $type): array - { - $apiPath = str_replace( - ['{type}'], - [$type], - '/account/mfa/authenticators/{type}' - ); - - $apiParams = []; - $apiParams['type'] = $type; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_POST, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Add an authenticator app to be used as an MFA factor. Verify the * authenticator using the [verify @@ -354,42 +319,6 @@ public function createMFAAuthenticator(AuthenticatorType $type): array ); } - /** - * Verify an authenticator app after adding it using the [add - * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) - * method. - * - * @param AuthenticatorType $type - * @param string $otp - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `updateMFAAuthenticator` instead. - * @see Account::updateMFAAuthenticator - */ - public function updateMfaAuthenticator(AuthenticatorType $type, string $otp): array - { - $apiPath = str_replace( - ['{type}'], - [$type], - '/account/mfa/authenticators/{type}' - ); - - $apiParams = []; - $apiParams['type'] = $type; - $apiParams['otp'] = $otp; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PUT, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Verify an authenticator app after adding it using the [add * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) @@ -423,38 +352,6 @@ public function updateMFAAuthenticator(AuthenticatorType $type, string $otp): ar ); } - /** - * Delete an authenticator for a user by ID. - * - * @param AuthenticatorType $type - * @throws AppwriteException - * @return string - * - * @deprecated This API has been deprecated since 1.8.0. Please use `deleteMFAAuthenticator` instead. - * @see Account::deleteMFAAuthenticator - */ - public function deleteMfaAuthenticator(AuthenticatorType $type): string - { - $apiPath = str_replace( - ['{type}'], - [$type], - '/account/mfa/authenticators/{type}' - ); - - $apiParams = []; - $apiParams['type'] = $type; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_DELETE, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Delete an authenticator for a user by ID. * @@ -484,40 +381,6 @@ public function deleteMFAAuthenticator(AuthenticatorType $type): string ); } - /** - * Begin the process of MFA verification after sign-in. Finish the flow with - * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) - * method. - * - * @param AuthenticationFactor $factor - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `createMFAChallenge` instead. - * @see Account::createMFAChallenge - */ - public function createMfaChallenge(AuthenticationFactor $factor): array - { - $apiPath = str_replace( - [], - [], - '/account/mfa/challenge' - ); - - $apiParams = []; - $apiParams['factor'] = $factor; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_POST, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Begin the process of MFA verification after sign-in. Finish the flow with * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) @@ -549,44 +412,6 @@ public function createMFAChallenge(AuthenticationFactor $factor): array ); } - /** - * Complete the MFA challenge by providing the one-time password. Finish the - * process of MFA verification by providing the one-time password. To begin - * the flow, use - * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) - * method. - * - * @param string $challengeId - * @param string $otp - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `updateMFAChallenge` instead. - * @see Account::updateMFAChallenge - */ - public function updateMfaChallenge(string $challengeId, string $otp): array - { - $apiPath = str_replace( - [], - [], - '/account/mfa/challenge' - ); - - $apiParams = []; - $apiParams['challengeId'] = $challengeId; - $apiParams['otp'] = $otp; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PUT, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Complete the MFA challenge by providing the one-time password. Finish the * process of MFA verification by providing the one-time password. To begin @@ -622,35 +447,6 @@ public function updateMFAChallenge(string $challengeId, string $otp): array ); } - /** - * List the factors available on the account to be used as a MFA challange. - * - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `listMFAFactors` instead. - * @see Account::listMFAFactors - */ - public function listMfaFactors(): array - { - $apiPath = str_replace( - [], - [], - '/account/mfa/factors' - ); - - $apiParams = []; - - $apiHeaders = []; - - return $this->client->call( - Client::METHOD_GET, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * List the factors available on the account to be used as a MFA challange. * @@ -677,38 +473,6 @@ public function listMFAFactors(): array ); } - /** - * Get recovery codes that can be used as backup for MFA flow. Before getting - * codes, they must be generated using - * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) - * method. An OTP challenge is required to read recovery codes. - * - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `getMFARecoveryCodes` instead. - * @see Account::getMFARecoveryCodes - */ - public function getMfaRecoveryCodes(): array - { - $apiPath = str_replace( - [], - [], - '/account/mfa/recovery-codes' - ); - - $apiParams = []; - - $apiHeaders = []; - - return $this->client->call( - Client::METHOD_GET, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Get recovery codes that can be used as backup for MFA flow. Before getting * codes, they must be generated using @@ -738,40 +502,6 @@ public function getMFARecoveryCodes(): array ); } - /** - * Generate recovery codes as backup for MFA flow. It's recommended to - * generate and show then immediately after user successfully adds their - * authehticator. Recovery codes can be used as a MFA verification type in - * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) - * method. - * - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `createMFARecoveryCodes` instead. - * @see Account::createMFARecoveryCodes - */ - public function createMfaRecoveryCodes(): array - { - $apiPath = str_replace( - [], - [], - '/account/mfa/recovery-codes' - ); - - $apiParams = []; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_POST, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Generate recovery codes as backup for MFA flow. It's recommended to * generate and show then immediately after user successfully adds their @@ -803,39 +533,6 @@ public function createMFARecoveryCodes(): array ); } - /** - * Regenerate recovery codes that can be used as backup for MFA flow. Before - * regenerating codes, they must be first generated using - * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) - * method. An OTP challenge is required to regenreate recovery codes. - * - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `updateMFARecoveryCodes` instead. - * @see Account::updateMFARecoveryCodes - */ - public function updateMfaRecoveryCodes(): array - { - $apiPath = str_replace( - [], - [], - '/account/mfa/recovery-codes' - ); - - $apiParams = []; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PATCH, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Regenerate recovery codes that can be used as backup for MFA flow. Before * regenerating codes, they must be first generated using diff --git a/src/Appwrite/Services/Avatars.php b/src/Appwrite/Services/Avatars.php index 5828ce8..4b5dfb7 100644 --- a/src/Appwrite/Services/Avatars.php +++ b/src/Appwrite/Services/Avatars.php @@ -9,6 +9,9 @@ use Appwrite\Enums\Browser; use Appwrite\Enums\CreditCard; use Appwrite\Enums\Flag; +use Appwrite\Enums\Theme; +use Appwrite\Enums\Timezone; +use Appwrite\Enums\Output; class Avatars extends Service { @@ -356,4 +359,136 @@ public function getQR(string $text, ?int $size = null, ?int $margin = null, ?boo $apiParams ); } + + /** + * Use this endpoint to capture a screenshot of any website URL. This endpoint + * uses a headless browser to render the webpage and capture it as an image. + * + * You can configure the browser viewport size, theme, user agent, + * geolocation, permissions, and more. Capture either just the viewport or the + * full page scroll. + * + * When width and height are specified, the image is resized accordingly. If + * both dimensions are 0, the API provides an image at original size. If + * dimensions are not specified, the default viewport size is 1280x720px. + * + * @param string $url + * @param ?array $headers + * @param ?int $viewportWidth + * @param ?int $viewportHeight + * @param ?float $scale + * @param ?Theme $theme + * @param ?string $userAgent + * @param ?bool $fullpage + * @param ?string $locale + * @param ?Timezone $timezone + * @param ?float $latitude + * @param ?float $longitude + * @param ?float $accuracy + * @param ?bool $touch + * @param ?array $permissions + * @param ?int $sleep + * @param ?int $width + * @param ?int $height + * @param ?int $quality + * @param ?Output $output + * @throws AppwriteException + * @return string + */ + public function getScreenshot(string $url, ?array $headers = null, ?int $viewportWidth = null, ?int $viewportHeight = null, ?float $scale = null, ?Theme $theme = null, ?string $userAgent = null, ?bool $fullpage = null, ?string $locale = null, ?Timezone $timezone = null, ?float $latitude = null, ?float $longitude = null, ?float $accuracy = null, ?bool $touch = null, ?array $permissions = null, ?int $sleep = null, ?int $width = null, ?int $height = null, ?int $quality = null, ?Output $output = null): string + { + $apiPath = str_replace( + [], + [], + '/avatars/screenshots' + ); + + $apiParams = []; + $apiParams['url'] = $url; + + if (!is_null($headers)) { + $apiParams['headers'] = $headers; + } + + if (!is_null($viewportWidth)) { + $apiParams['viewportWidth'] = $viewportWidth; + } + + if (!is_null($viewportHeight)) { + $apiParams['viewportHeight'] = $viewportHeight; + } + + if (!is_null($scale)) { + $apiParams['scale'] = $scale; + } + + if (!is_null($theme)) { + $apiParams['theme'] = $theme; + } + + if (!is_null($userAgent)) { + $apiParams['userAgent'] = $userAgent; + } + + if (!is_null($fullpage)) { + $apiParams['fullpage'] = $fullpage; + } + + if (!is_null($locale)) { + $apiParams['locale'] = $locale; + } + + if (!is_null($timezone)) { + $apiParams['timezone'] = $timezone; + } + + if (!is_null($latitude)) { + $apiParams['latitude'] = $latitude; + } + + if (!is_null($longitude)) { + $apiParams['longitude'] = $longitude; + } + + if (!is_null($accuracy)) { + $apiParams['accuracy'] = $accuracy; + } + + if (!is_null($touch)) { + $apiParams['touch'] = $touch; + } + + if (!is_null($permissions)) { + $apiParams['permissions'] = $permissions; + } + + if (!is_null($sleep)) { + $apiParams['sleep'] = $sleep; + } + + if (!is_null($width)) { + $apiParams['width'] = $width; + } + + if (!is_null($height)) { + $apiParams['height'] = $height; + } + + if (!is_null($quality)) { + $apiParams['quality'] = $quality; + } + + if (!is_null($output)) { + $apiParams['output'] = $output; + } + + $apiHeaders = []; + + return $this->client->call( + Client::METHOD_GET, + $apiPath, + $apiHeaders, + $apiParams + ); + } } \ No newline at end of file diff --git a/src/Appwrite/Services/Messaging.php b/src/Appwrite/Services/Messaging.php index beaafc8..f18430d 100644 --- a/src/Appwrite/Services/Messaging.php +++ b/src/Appwrite/Services/Messaging.php @@ -463,65 +463,6 @@ public function updatePush(string $messageId, ?array $topics = null, ?array $use ); } - /** - * Create a new SMS message. - * - * @param string $messageId - * @param string $content - * @param ?array $topics - * @param ?array $users - * @param ?array $targets - * @param ?bool $draft - * @param ?string $scheduledAt - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `createSMS` instead. - * @see Messaging::createSMS - */ - public function createSms(string $messageId, string $content, ?array $topics = null, ?array $users = null, ?array $targets = null, ?bool $draft = null, ?string $scheduledAt = null): array - { - $apiPath = str_replace( - [], - [], - '/messaging/messages/sms' - ); - - $apiParams = []; - $apiParams['messageId'] = $messageId; - $apiParams['content'] = $content; - - if (!is_null($topics)) { - $apiParams['topics'] = $topics; - } - - if (!is_null($users)) { - $apiParams['users'] = $users; - } - - if (!is_null($targets)) { - $apiParams['targets'] = $targets; - } - - if (!is_null($draft)) { - $apiParams['draft'] = $draft; - } - - if (!is_null($scheduledAt)) { - $apiParams['scheduledAt'] = $scheduledAt; - } - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_POST, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Create a new SMS message. * @@ -578,71 +519,6 @@ public function createSMS(string $messageId, string $content, ?array $topics = n ); } - /** - * Update an SMS message by its unique ID. This endpoint only works on - * messages that are in draft status. Messages that are already processing, - * sent, or failed cannot be updated. - * - * - * @param string $messageId - * @param ?array $topics - * @param ?array $users - * @param ?array $targets - * @param ?string $content - * @param ?bool $draft - * @param ?string $scheduledAt - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `updateSMS` instead. - * @see Messaging::updateSMS - */ - public function updateSms(string $messageId, ?array $topics = null, ?array $users = null, ?array $targets = null, ?string $content = null, ?bool $draft = null, ?string $scheduledAt = null): array - { - $apiPath = str_replace( - ['{messageId}'], - [$messageId], - '/messaging/messages/sms/{messageId}' - ); - - $apiParams = []; - $apiParams['messageId'] = $messageId; - - if (!is_null($topics)) { - $apiParams['topics'] = $topics; - } - - if (!is_null($users)) { - $apiParams['users'] = $users; - } - - if (!is_null($targets)) { - $apiParams['targets'] = $targets; - } - - if (!is_null($content)) { - $apiParams['content'] = $content; - } - - if (!is_null($draft)) { - $apiParams['draft'] = $draft; - } - - if (!is_null($scheduledAt)) { - $apiParams['scheduledAt'] = $scheduledAt; - } - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PATCH, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Update an SMS message by its unique ID. This endpoint only works on * messages that are in draft status. Messages that are already processing, @@ -881,70 +757,6 @@ public function listProviders(?array $queries = null, ?string $search = null, ?b ); } - /** - * Create a new Apple Push Notification service provider. - * - * @param string $providerId - * @param string $name - * @param ?string $authKey - * @param ?string $authKeyId - * @param ?string $teamId - * @param ?string $bundleId - * @param ?bool $sandbox - * @param ?bool $enabled - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `createAPNSProvider` instead. - * @see Messaging::createAPNSProvider - */ - public function createApnsProvider(string $providerId, string $name, ?string $authKey = null, ?string $authKeyId = null, ?string $teamId = null, ?string $bundleId = null, ?bool $sandbox = null, ?bool $enabled = null): array - { - $apiPath = str_replace( - [], - [], - '/messaging/providers/apns' - ); - - $apiParams = []; - $apiParams['providerId'] = $providerId; - $apiParams['name'] = $name; - - if (!is_null($authKey)) { - $apiParams['authKey'] = $authKey; - } - - if (!is_null($authKeyId)) { - $apiParams['authKeyId'] = $authKeyId; - } - - if (!is_null($teamId)) { - $apiParams['teamId'] = $teamId; - } - - if (!is_null($bundleId)) { - $apiParams['bundleId'] = $bundleId; - } - - if (!is_null($sandbox)) { - $apiParams['sandbox'] = $sandbox; - } - - if (!is_null($enabled)) { - $apiParams['enabled'] = $enabled; - } - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_POST, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Create a new Apple Push Notification service provider. * @@ -1006,73 +818,6 @@ public function createAPNSProvider(string $providerId, string $name, ?string $au ); } - /** - * Update a Apple Push Notification service provider by its unique ID. - * - * @param string $providerId - * @param ?string $name - * @param ?bool $enabled - * @param ?string $authKey - * @param ?string $authKeyId - * @param ?string $teamId - * @param ?string $bundleId - * @param ?bool $sandbox - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `updateAPNSProvider` instead. - * @see Messaging::updateAPNSProvider - */ - public function updateApnsProvider(string $providerId, ?string $name = null, ?bool $enabled = null, ?string $authKey = null, ?string $authKeyId = null, ?string $teamId = null, ?string $bundleId = null, ?bool $sandbox = null): array - { - $apiPath = str_replace( - ['{providerId}'], - [$providerId], - '/messaging/providers/apns/{providerId}' - ); - - $apiParams = []; - $apiParams['providerId'] = $providerId; - - if (!is_null($name)) { - $apiParams['name'] = $name; - } - - if (!is_null($enabled)) { - $apiParams['enabled'] = $enabled; - } - - if (!is_null($authKey)) { - $apiParams['authKey'] = $authKey; - } - - if (!is_null($authKeyId)) { - $apiParams['authKeyId'] = $authKeyId; - } - - if (!is_null($teamId)) { - $apiParams['teamId'] = $teamId; - } - - if (!is_null($bundleId)) { - $apiParams['bundleId'] = $bundleId; - } - - if (!is_null($sandbox)) { - $apiParams['sandbox'] = $sandbox; - } - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PATCH, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Update a Apple Push Notification service provider by its unique ID. * @@ -1137,50 +882,6 @@ public function updateAPNSProvider(string $providerId, ?string $name = null, ?bo ); } - /** - * Create a new Firebase Cloud Messaging provider. - * - * @param string $providerId - * @param string $name - * @param ?array $serviceAccountJSON - * @param ?bool $enabled - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `createFCMProvider` instead. - * @see Messaging::createFCMProvider - */ - public function createFcmProvider(string $providerId, string $name, ?array $serviceAccountJSON = null, ?bool $enabled = null): array - { - $apiPath = str_replace( - [], - [], - '/messaging/providers/fcm' - ); - - $apiParams = []; - $apiParams['providerId'] = $providerId; - $apiParams['name'] = $name; - - if (!is_null($serviceAccountJSON)) { - $apiParams['serviceAccountJSON'] = $serviceAccountJSON; - } - - if (!is_null($enabled)) { - $apiParams['enabled'] = $enabled; - } - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_POST, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Create a new Firebase Cloud Messaging provider. * @@ -1222,53 +923,6 @@ public function createFCMProvider(string $providerId, string $name, ?array $serv ); } - /** - * Update a Firebase Cloud Messaging provider by its unique ID. - * - * @param string $providerId - * @param ?string $name - * @param ?bool $enabled - * @param ?array $serviceAccountJSON - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `updateFCMProvider` instead. - * @see Messaging::updateFCMProvider - */ - public function updateFcmProvider(string $providerId, ?string $name = null, ?bool $enabled = null, ?array $serviceAccountJSON = null): array - { - $apiPath = str_replace( - ['{providerId}'], - [$providerId], - '/messaging/providers/fcm/{providerId}' - ); - - $apiParams = []; - $apiParams['providerId'] = $providerId; - - if (!is_null($name)) { - $apiParams['name'] = $name; - } - - if (!is_null($enabled)) { - $apiParams['enabled'] = $enabled; - } - - if (!is_null($serviceAccountJSON)) { - $apiParams['serviceAccountJSON'] = $serviceAccountJSON; - } - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PATCH, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Update a Firebase Cloud Messaging provider by its unique ID. * @@ -1813,97 +1467,6 @@ public function updateSendgridProvider(string $providerId, ?string $name = null, ); } - /** - * Create a new SMTP provider. - * - * @param string $providerId - * @param string $name - * @param string $host - * @param ?int $port - * @param ?string $username - * @param ?string $password - * @param ?SmtpEncryption $encryption - * @param ?bool $autoTLS - * @param ?string $mailer - * @param ?string $fromName - * @param ?string $fromEmail - * @param ?string $replyToName - * @param ?string $replyToEmail - * @param ?bool $enabled - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `createSMTPProvider` instead. - * @see Messaging::createSMTPProvider - */ - public function createSmtpProvider(string $providerId, string $name, string $host, ?int $port = null, ?string $username = null, ?string $password = null, ?SmtpEncryption $encryption = null, ?bool $autoTLS = null, ?string $mailer = null, ?string $fromName = null, ?string $fromEmail = null, ?string $replyToName = null, ?string $replyToEmail = null, ?bool $enabled = null): array - { - $apiPath = str_replace( - [], - [], - '/messaging/providers/smtp' - ); - - $apiParams = []; - $apiParams['providerId'] = $providerId; - $apiParams['name'] = $name; - $apiParams['host'] = $host; - - if (!is_null($port)) { - $apiParams['port'] = $port; - } - - if (!is_null($username)) { - $apiParams['username'] = $username; - } - - if (!is_null($password)) { - $apiParams['password'] = $password; - } - - if (!is_null($encryption)) { - $apiParams['encryption'] = $encryption; - } - - if (!is_null($autoTLS)) { - $apiParams['autoTLS'] = $autoTLS; - } - - if (!is_null($mailer)) { - $apiParams['mailer'] = $mailer; - } - - if (!is_null($fromName)) { - $apiParams['fromName'] = $fromName; - } - - if (!is_null($fromEmail)) { - $apiParams['fromEmail'] = $fromEmail; - } - - if (!is_null($replyToName)) { - $apiParams['replyToName'] = $replyToName; - } - - if (!is_null($replyToEmail)) { - $apiParams['replyToEmail'] = $replyToEmail; - } - - if (!is_null($enabled)) { - $apiParams['enabled'] = $enabled; - } - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_POST, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Create a new SMTP provider. * @@ -1992,103 +1555,6 @@ public function createSMTPProvider(string $providerId, string $name, string $hos ); } - /** - * Update a SMTP provider by its unique ID. - * - * @param string $providerId - * @param ?string $name - * @param ?string $host - * @param ?int $port - * @param ?string $username - * @param ?string $password - * @param ?SmtpEncryption $encryption - * @param ?bool $autoTLS - * @param ?string $mailer - * @param ?string $fromName - * @param ?string $fromEmail - * @param ?string $replyToName - * @param ?string $replyToEmail - * @param ?bool $enabled - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `updateSMTPProvider` instead. - * @see Messaging::updateSMTPProvider - */ - public function updateSmtpProvider(string $providerId, ?string $name = null, ?string $host = null, ?int $port = null, ?string $username = null, ?string $password = null, ?SmtpEncryption $encryption = null, ?bool $autoTLS = null, ?string $mailer = null, ?string $fromName = null, ?string $fromEmail = null, ?string $replyToName = null, ?string $replyToEmail = null, ?bool $enabled = null): array - { - $apiPath = str_replace( - ['{providerId}'], - [$providerId], - '/messaging/providers/smtp/{providerId}' - ); - - $apiParams = []; - $apiParams['providerId'] = $providerId; - - if (!is_null($name)) { - $apiParams['name'] = $name; - } - - if (!is_null($host)) { - $apiParams['host'] = $host; - } - - if (!is_null($port)) { - $apiParams['port'] = $port; - } - - if (!is_null($username)) { - $apiParams['username'] = $username; - } - - if (!is_null($password)) { - $apiParams['password'] = $password; - } - - if (!is_null($encryption)) { - $apiParams['encryption'] = $encryption; - } - - if (!is_null($autoTLS)) { - $apiParams['autoTLS'] = $autoTLS; - } - - if (!is_null($mailer)) { - $apiParams['mailer'] = $mailer; - } - - if (!is_null($fromName)) { - $apiParams['fromName'] = $fromName; - } - - if (!is_null($fromEmail)) { - $apiParams['fromEmail'] = $fromEmail; - } - - if (!is_null($replyToName)) { - $apiParams['replyToName'] = $replyToName; - } - - if (!is_null($replyToEmail)) { - $apiParams['replyToEmail'] = $replyToEmail; - } - - if (!is_null($enabled)) { - $apiParams['enabled'] = $enabled; - } - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PATCH, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Update a SMTP provider by its unique ID. * diff --git a/src/Appwrite/Services/Sites.php b/src/Appwrite/Services/Sites.php index 93f5bfc..e94ac0e 100644 --- a/src/Appwrite/Services/Sites.php +++ b/src/Appwrite/Services/Sites.php @@ -463,7 +463,7 @@ public function listDeployments(string $siteId, ?array $queries = null, ?string /** * Create a new site code deployment. Use this endpoint to upload a new * version of your site code. To activate your newly uploaded code, you'll - * need to update the function's deployment to use your new deployment ID. + * need to update the site's deployment to use your new deployment ID. * * @param string $siteId * @param InputFile $code diff --git a/src/Appwrite/Services/Users.php b/src/Appwrite/Services/Users.php index 6e3d8cf..10e6bb0 100644 --- a/src/Appwrite/Services/Users.php +++ b/src/Appwrite/Services/Users.php @@ -738,40 +738,6 @@ public function listMemberships(string $userId, ?array $queries = null, ?string ); } - /** - * Enable or disable MFA on a user account. - * - * @param string $userId - * @param bool $mfa - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `updateMFA` instead. - * @see Users::updateMFA - */ - public function updateMfa(string $userId, bool $mfa): array - { - $apiPath = str_replace( - ['{userId}'], - [$userId], - '/users/{userId}/mfa' - ); - - $apiParams = []; - $apiParams['userId'] = $userId; - $apiParams['mfa'] = $mfa; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PATCH, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Enable or disable MFA on a user account. * @@ -803,40 +769,6 @@ public function updateMFA(string $userId, bool $mfa): array ); } - /** - * Delete an authenticator app. - * - * @param string $userId - * @param AuthenticatorType $type - * @throws AppwriteException - * @return string - * - * @deprecated This API has been deprecated since 1.8.0. Please use `deleteMFAAuthenticator` instead. - * @see Users::deleteMFAAuthenticator - */ - public function deleteMfaAuthenticator(string $userId, AuthenticatorType $type): string - { - $apiPath = str_replace( - ['{userId}', '{type}'], - [$userId, $type], - '/users/{userId}/mfa/authenticators/{type}' - ); - - $apiParams = []; - $apiParams['userId'] = $userId; - $apiParams['type'] = $type; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_DELETE, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Delete an authenticator app. * @@ -868,37 +800,6 @@ public function deleteMFAAuthenticator(string $userId, AuthenticatorType $type): ); } - /** - * List the factors available on the account to be used as a MFA challange. - * - * @param string $userId - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `listMFAFactors` instead. - * @see Users::listMFAFactors - */ - public function listMfaFactors(string $userId): array - { - $apiPath = str_replace( - ['{userId}'], - [$userId], - '/users/{userId}/mfa/factors' - ); - - $apiParams = []; - $apiParams['userId'] = $userId; - - $apiHeaders = []; - - return $this->client->call( - Client::METHOD_GET, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * List the factors available on the account to be used as a MFA challange. * @@ -927,40 +828,6 @@ public function listMFAFactors(string $userId): array ); } - /** - * Get recovery codes that can be used as backup for MFA flow by User ID. - * Before getting codes, they must be generated using - * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) - * method. - * - * @param string $userId - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `getMFARecoveryCodes` instead. - * @see Users::getMFARecoveryCodes - */ - public function getMfaRecoveryCodes(string $userId): array - { - $apiPath = str_replace( - ['{userId}'], - [$userId], - '/users/{userId}/mfa/recovery-codes' - ); - - $apiParams = []; - $apiParams['userId'] = $userId; - - $apiHeaders = []; - - return $this->client->call( - Client::METHOD_GET, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Get recovery codes that can be used as backup for MFA flow by User ID. * Before getting codes, they must be generated using @@ -992,41 +859,6 @@ public function getMFARecoveryCodes(string $userId): array ); } - /** - * Regenerate recovery codes that can be used as backup for MFA flow by User - * ID. Before regenerating codes, they must be first generated using - * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) - * method. - * - * @param string $userId - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `updateMFARecoveryCodes` instead. - * @see Users::updateMFARecoveryCodes - */ - public function updateMfaRecoveryCodes(string $userId): array - { - $apiPath = str_replace( - ['{userId}'], - [$userId], - '/users/{userId}/mfa/recovery-codes' - ); - - $apiParams = []; - $apiParams['userId'] = $userId; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PUT, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Regenerate recovery codes that can be used as backup for MFA flow by User * ID. Before regenerating codes, they must be first generated using @@ -1059,41 +891,6 @@ public function updateMFARecoveryCodes(string $userId): array ); } - /** - * Generate recovery codes used as backup for MFA flow for User ID. Recovery - * codes can be used as a MFA verification type in - * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) - * method by client SDK. - * - * @param string $userId - * @throws AppwriteException - * @return array - * - * @deprecated This API has been deprecated since 1.8.0. Please use `createMFARecoveryCodes` instead. - * @see Users::createMFARecoveryCodes - */ - public function createMfaRecoveryCodes(string $userId): array - { - $apiPath = str_replace( - ['{userId}'], - [$userId], - '/users/{userId}/mfa/recovery-codes' - ); - - $apiParams = []; - $apiParams['userId'] = $userId; - - $apiHeaders = []; - $apiHeaders['content-type'] = 'application/json'; - - return $this->client->call( - Client::METHOD_PATCH, - $apiPath, - $apiHeaders, - $apiParams - ); - } - /** * Generate recovery codes used as backup for MFA flow for User ID. Recovery * codes can be used as a MFA verification type in diff --git a/tests/Appwrite/Services/AccountTest.php b/tests/Appwrite/Services/AccountTest.php index 8b8c3e6..28ced55 100644 --- a/tests/Appwrite/Services/AccountTest.php +++ b/tests/Appwrite/Services/AccountTest.php @@ -212,24 +212,6 @@ public function testMethodUpdateMFA(): void { $this->assertSame($data, $response); } - public function testMethodCreateMfaAuthenticator(): void { - - $data = array( - "secret" => "1", - "uri" => "1",); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->account->createMfaAuthenticator( - "totp" - ); - - $this->assertSame($data, $response); - } - public function testMethodCreateMFAAuthenticator(): void { $data = array( @@ -248,39 +230,6 @@ public function testMethodCreateMFAAuthenticator(): void { $this->assertSame($data, $response); } - public function testMethodUpdateMfaAuthenticator(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "name" => "John Doe", - "registration" => "2020-10-15T06:38:00.000+00:00", - "status" => true, - "labels" => array(), - "passwordUpdate" => "2020-10-15T06:38:00.000+00:00", - "email" => "john@appwrite.io", - "phone" => "+4930901820", - "emailVerification" => true, - "phoneVerification" => true, - "mfa" => true, - "prefs" => array(), - "targets" => array(), - "accessedAt" => "2020-10-15T06:38:00.000+00:00",); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->account->updateMfaAuthenticator( - "totp", - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodUpdateMFAAuthenticator(): void { $data = array( @@ -314,22 +263,6 @@ public function testMethodUpdateMFAAuthenticator(): void { $this->assertSame($data, $response); } - public function testMethodDeleteMfaAuthenticator(): void { - - $data = ''; - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->account->deleteMfaAuthenticator( - "totp" - ); - - $this->assertSame($data, $response); - } - public function testMethodDeleteMFAAuthenticator(): void { $data = ''; @@ -346,26 +279,6 @@ public function testMethodDeleteMFAAuthenticator(): void { $this->assertSame($data, $response); } - public function testMethodCreateMfaChallenge(): void { - - $data = array( - "\$id" => "bb8ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "userId" => "5e5ea5c168bb8", - "expire" => "2020-10-15T06:38:00.000+00:00",); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->account->createMfaChallenge( - "email" - ); - - $this->assertSame($data, $response); - } - public function testMethodCreateMFAChallenge(): void { $data = array( @@ -386,52 +299,6 @@ public function testMethodCreateMFAChallenge(): void { $this->assertSame($data, $response); } - public function testMethodUpdateMfaChallenge(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "userId" => "5e5bb8c16897e", - "expire" => "2020-10-15T06:38:00.000+00:00", - "provider" => "email", - "providerUid" => "user@example.com", - "providerAccessToken" => "MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3", - "providerAccessTokenExpiry" => "2020-10-15T06:38:00.000+00:00", - "providerRefreshToken" => "MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3", - "ip" => "127.0.0.1", - "osCode" => "Mac", - "osName" => "Mac", - "osVersion" => "Mac", - "clientType" => "browser", - "clientCode" => "CM", - "clientName" => "Chrome Mobile iOS", - "clientVersion" => "84.0", - "clientEngine" => "WebKit", - "clientEngineVersion" => "605.1.15", - "deviceName" => "smartphone", - "deviceBrand" => "Google", - "deviceModel" => "Nexus 5", - "countryCode" => "US", - "countryName" => "United States", - "current" => true, - "factors" => array(), - "secret" => "5e5bb8c16897e", - "mfaUpdatedAt" => "2020-10-15T06:38:00.000+00:00",); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->account->updateMfaChallenge( - "", - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodUpdateMFAChallenge(): void { $data = array( @@ -478,25 +345,6 @@ public function testMethodUpdateMFAChallenge(): void { $this->assertSame($data, $response); } - public function testMethodListMfaFactors(): void { - - $data = array( - "totp" => true, - "phone" => true, - "email" => true, - "recoveryCode" => true,); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->account->listMfaFactors( - ); - - $this->assertSame($data, $response); - } - public function testMethodListMFAFactors(): void { $data = array( @@ -516,22 +364,6 @@ public function testMethodListMFAFactors(): void { $this->assertSame($data, $response); } - public function testMethodGetMfaRecoveryCodes(): void { - - $data = array( - "recoveryCodes" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->account->getMfaRecoveryCodes( - ); - - $this->assertSame($data, $response); - } - public function testMethodGetMFARecoveryCodes(): void { $data = array( @@ -548,22 +380,6 @@ public function testMethodGetMFARecoveryCodes(): void { $this->assertSame($data, $response); } - public function testMethodCreateMfaRecoveryCodes(): void { - - $data = array( - "recoveryCodes" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->account->createMfaRecoveryCodes( - ); - - $this->assertSame($data, $response); - } - public function testMethodCreateMFARecoveryCodes(): void { $data = array( @@ -580,22 +396,6 @@ public function testMethodCreateMFARecoveryCodes(): void { $this->assertSame($data, $response); } - public function testMethodUpdateMfaRecoveryCodes(): void { - - $data = array( - "recoveryCodes" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->account->updateMfaRecoveryCodes( - ); - - $this->assertSame($data, $response); - } - public function testMethodUpdateMFARecoveryCodes(): void { $data = array( diff --git a/tests/Appwrite/Services/AvatarsTest.php b/tests/Appwrite/Services/AvatarsTest.php index cb2790e..ece3c24 100644 --- a/tests/Appwrite/Services/AvatarsTest.php +++ b/tests/Appwrite/Services/AvatarsTest.php @@ -127,4 +127,20 @@ public function testMethodGetQR(): void { $this->assertSame($data, $response); } + public function testMethodGetScreenshot(): void { + + $data = ''; + + + $this->client + ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) + ->andReturn($data); + + $response = $this->avatars->getScreenshot( + "https://example.com" + ); + + $this->assertSame($data, $response); + } + } diff --git a/tests/Appwrite/Services/MessagingTest.php b/tests/Appwrite/Services/MessagingTest.php index b11882e..ad2aab3 100644 --- a/tests/Appwrite/Services/MessagingTest.php +++ b/tests/Appwrite/Services/MessagingTest.php @@ -139,33 +139,6 @@ public function testMethodUpdatePush(): void { $this->assertSame($data, $response); } - public function testMethodCreateSms(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "providerType" => "email", - "topics" => array(), - "users" => array(), - "targets" => array(), - "deliveredTotal" => 1, - "data" => array(), - "status" => "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->messaging->createSms( - "", - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodCreateSMS(): void { $data = array( @@ -193,32 +166,6 @@ public function testMethodCreateSMS(): void { $this->assertSame($data, $response); } - public function testMethodUpdateSms(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "providerType" => "email", - "topics" => array(), - "users" => array(), - "targets" => array(), - "deliveredTotal" => 1, - "data" => array(), - "status" => "Message status can be one of the following: draft, processing, scheduled, sent, or failed.",); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->messaging->updateSms( - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodUpdateSMS(): void { $data = array( @@ -340,31 +287,6 @@ public function testMethodListProviders(): void { $this->assertSame($data, $response); } - public function testMethodCreateApnsProvider(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "name" => "Mailgun", - "provider" => "mailgun", - "enabled" => true, - "type" => "sms", - "credentials" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->messaging->createApnsProvider( - "", - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodCreateAPNSProvider(): void { $data = array( @@ -390,30 +312,6 @@ public function testMethodCreateAPNSProvider(): void { $this->assertSame($data, $response); } - public function testMethodUpdateApnsProvider(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "name" => "Mailgun", - "provider" => "mailgun", - "enabled" => true, - "type" => "sms", - "credentials" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->messaging->updateApnsProvider( - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodUpdateAPNSProvider(): void { $data = array( @@ -438,31 +336,6 @@ public function testMethodUpdateAPNSProvider(): void { $this->assertSame($data, $response); } - public function testMethodCreateFcmProvider(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "name" => "Mailgun", - "provider" => "mailgun", - "enabled" => true, - "type" => "sms", - "credentials" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->messaging->createFcmProvider( - "", - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodCreateFCMProvider(): void { $data = array( @@ -488,30 +361,6 @@ public function testMethodCreateFCMProvider(): void { $this->assertSame($data, $response); } - public function testMethodUpdateFcmProvider(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "name" => "Mailgun", - "provider" => "mailgun", - "enabled" => true, - "type" => "sms", - "credentials" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->messaging->updateFcmProvider( - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodUpdateFCMProvider(): void { $data = array( @@ -732,32 +581,6 @@ public function testMethodUpdateSendgridProvider(): void { $this->assertSame($data, $response); } - public function testMethodCreateSmtpProvider(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "name" => "Mailgun", - "provider" => "mailgun", - "enabled" => true, - "type" => "sms", - "credentials" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->messaging->createSmtpProvider( - "", - "", - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodCreateSMTPProvider(): void { $data = array( @@ -784,30 +607,6 @@ public function testMethodCreateSMTPProvider(): void { $this->assertSame($data, $response); } - public function testMethodUpdateSmtpProvider(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "name" => "Mailgun", - "provider" => "mailgun", - "enabled" => true, - "type" => "sms", - "credentials" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->messaging->updateSmtpProvider( - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodUpdateSMTPProvider(): void { $data = array( diff --git a/tests/Appwrite/Services/UsersTest.php b/tests/Appwrite/Services/UsersTest.php index db74cd6..101d1af 100644 --- a/tests/Appwrite/Services/UsersTest.php +++ b/tests/Appwrite/Services/UsersTest.php @@ -511,39 +511,6 @@ public function testMethodListMemberships(): void { $this->assertSame($data, $response); } - public function testMethodUpdateMfa(): void { - - $data = array( - "\$id" => "5e5ea5c16897e", - "\$createdAt" => "2020-10-15T06:38:00.000+00:00", - "\$updatedAt" => "2020-10-15T06:38:00.000+00:00", - "name" => "John Doe", - "registration" => "2020-10-15T06:38:00.000+00:00", - "status" => true, - "labels" => array(), - "passwordUpdate" => "2020-10-15T06:38:00.000+00:00", - "email" => "john@appwrite.io", - "phone" => "+4930901820", - "emailVerification" => true, - "phoneVerification" => true, - "mfa" => true, - "prefs" => array(), - "targets" => array(), - "accessedAt" => "2020-10-15T06:38:00.000+00:00",); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->users->updateMfa( - "", - true - ); - - $this->assertSame($data, $response); - } - public function testMethodUpdateMFA(): void { $data = array( @@ -577,23 +544,6 @@ public function testMethodUpdateMFA(): void { $this->assertSame($data, $response); } - public function testMethodDeleteMfaAuthenticator(): void { - - $data = ''; - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->users->deleteMfaAuthenticator( - "", - "totp" - ); - - $this->assertSame($data, $response); - } - public function testMethodDeleteMFAAuthenticator(): void { $data = ''; @@ -611,26 +561,6 @@ public function testMethodDeleteMFAAuthenticator(): void { $this->assertSame($data, $response); } - public function testMethodListMfaFactors(): void { - - $data = array( - "totp" => true, - "phone" => true, - "email" => true, - "recoveryCode" => true,); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->users->listMfaFactors( - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodListMFAFactors(): void { $data = array( @@ -651,23 +581,6 @@ public function testMethodListMFAFactors(): void { $this->assertSame($data, $response); } - public function testMethodGetMfaRecoveryCodes(): void { - - $data = array( - "recoveryCodes" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->users->getMfaRecoveryCodes( - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodGetMFARecoveryCodes(): void { $data = array( @@ -685,23 +598,6 @@ public function testMethodGetMFARecoveryCodes(): void { $this->assertSame($data, $response); } - public function testMethodUpdateMfaRecoveryCodes(): void { - - $data = array( - "recoveryCodes" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->users->updateMfaRecoveryCodes( - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodUpdateMFARecoveryCodes(): void { $data = array( @@ -719,23 +615,6 @@ public function testMethodUpdateMFARecoveryCodes(): void { $this->assertSame($data, $response); } - public function testMethodCreateMfaRecoveryCodes(): void { - - $data = array( - "recoveryCodes" => array(),); - - - $this->client - ->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any()) - ->andReturn($data); - - $response = $this->users->createMfaRecoveryCodes( - "" - ); - - $this->assertSame($data, $response); - } - public function testMethodCreateMFARecoveryCodes(): void { $data = array(