X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/vendor/aws/aws-sdk-php/src/Arn
home
/
gfecatvj
/
sites
/
realesbar
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Arn
/
📁
..
📄
AccessPointArn.php
(2.48 KB)
📄
Arn.php
(4 KB)
📄
ArnInterface.php
(864 B)
📄
ArnParser.php
(927 B)
📁
Exception
📄
ResourceTypeAndIdTrait.php
(789 B)
📁
S3
Editing: ArnParser.php
<?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); } }
Upload File
Create Folder