__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ErrorParser | Folder | 0777 |
|
|
| Parser | Folder | 0777 |
|
|
| Serializer | Folder | 0777 |
|
|
| AbstractModel.php | File | 1.96 KB | 0777 |
|
| ApiProvider.php | File | 7.47 KB | 0777 |
|
| DateTimeResult.php | File | 4.09 KB | 0777 |
|
| DocModel.php | File | 3.38 KB | 0777 |
|
| ListShape.php | File | 786 B | 0777 |
|
| MapShape.php | File | 1.14 KB | 0777 |
|
| Operation.php | File | 3.38 KB | 0777 |
|
| Service.php | File | 13.53 KB | 0777 |
|
| Shape.php | File | 1.81 KB | 0777 |
|
| ShapeMap.php | File | 1.46 KB | 0777 |
|
| StructureShape.php | File | 1.65 KB | 0777 |
|
| TimestampShape.php | File | 1.45 KB | 0777 |
|
| Validator.php | File | 10.04 KB | 0777 |
|