PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
media-cloud-sync / includes / sdk / s3 / Aws / Api / SupportedProtocols.php

SupportedProtocols.php in Media Cloud Sync 1.4.2, at includes/sdk/s3/Aws/Api/SupportedProtocols.php

26 lines 577 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\s3\Aws\Api;
4
5 /**
6 * Priority ordered collection of supported AWS protocols.
7 */
8 enum SupportedProtocols : string
9 {
10 case JSON = 'json';
11 case REST_JSON = 'rest-json';
12 case REST_XML = 'rest-xml';
13 case QUERY = 'query';
14 case EC2 = 'ec2';
15 /**
16 * Check if a protocol is valid.
17 *
18 * @param string $protocol
19 * @return bool True if the protocol is supported, otherwise false.
20 */
21 public static function isSupported(string $protocol) : bool
22 {
23 return self::tryFrom($protocol) !== null;
24 }
25 }
26