OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
zzXpress
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Api
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
AbstractModel.php
2.04 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
ApiProvider.php
7.71 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
DateTimeResult.php
3.77 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
DocModel.php
3.52 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
ErrorParser
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
ListShape.php
821 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📄
MapShape.php
1.2 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
Operation.php
3.51 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Parser
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📁
Serializer
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
Service.php
14.05 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
Shape.php
1.89 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
ShapeMap.php
1.53 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
StructureShape.php
1.72 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
TimestampShape.php
1.49 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
Validator.php
10.38 KB
05/19/2025 10:07:23 AM
rw-r--r--
Editing: AbstractModel.php
Close
<?php namespace Aws\Api; /** * Base class that is used by most API shapes */ abstract class AbstractModel implements \ArrayAccess { /** @var array */ protected $definition; /** @var ShapeMap */ protected $shapeMap; /** @var array */ protected $contextParam; /** * @param array $definition Service description * @param ShapeMap $shapeMap Shapemap used for creating shapes */ public function __construct(array $definition, ShapeMap $shapeMap) { $this->definition = $definition; $this->shapeMap = $shapeMap; if (isset($definition['contextParam'])) { $this->contextParam = $definition['contextParam']; } } public function toArray() { return $this->definition; } /** * @return mixed|null */ #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->definition[$offset]) ? $this->definition[$offset] : null; } /** * @return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->definition[$offset] = $value; } /** * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->definition[$offset]); } /** * @return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->definition[$offset]); } protected function shapeAt($key) { if (!isset($this->definition[$key])) { throw new \InvalidArgumentException('Expected shape definition at ' . $key); } return $this->shapeFor($this->definition[$key]); } protected function shapeFor(array $definition) { return isset($definition['shape']) ? $this->shapeMap->resolve($definition) : Shape::create($definition, $this->shapeMap); } }