Server IP : 184.154.167.98 / Your IP : 18.221.244.75 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/fotografico/3rdparty/aws/aws-sdk-php/src/Arn/ |
Upload File : |
<?php namespace Aws\Arn; use Aws\Arn\S3\AccessPointArn as S3AccessPointArn; use Aws\Arn\S3\BucketArn; /** * @internal */ class ArnParser { /** * @param $string * @return bool */ public static function isArn($string) { return strpos($string, 'arn:') === 0; } /** * Parses a string and returns an instance of ArnInterface. Returns a * specific type of Arn object if it has a specific class representation * or a generic Arn object if not. * * @param $string * @return ArnInterface */ public static function parse($string) { $data = Arn::parse($string); if (substr($data['resource'], 0, 11) === 'accesspoint') { if ($data['service'] === 's3') { return new S3AccessPointArn($string); } return new AccessPointArn($string); } return new Arn($data); } }