OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress_backup
/
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:19 AM
rwxr-xr-x
📄
AbstractModel.php
2.04 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
ApiProvider.php
7.71 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
DateTimeResult.php
3.77 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
DocModel.php
3.52 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
ErrorParser
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📄
ListShape.php
821 bytes
05/19/2025 10:07:19 AM
rw-r--r--
📄
MapShape.php
1.2 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
Operation.php
3.51 KB
05/19/2025 10:07:19 AM
rw-r--r--
📁
Parser
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📁
Serializer
-
05/19/2025 10:07:19 AM
rwxr-xr-x
📄
Service.php
14.05 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
Shape.php
1.89 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
ShapeMap.php
1.53 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
StructureShape.php
1.72 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
TimestampShape.php
1.49 KB
05/19/2025 10:07:19 AM
rw-r--r--
📄
Validator.php
10.38 KB
05/19/2025 10:07:19 AM
rw-r--r--
Editing: MapShape.php
Close
<?php namespace Aws\Api; /** * Represents a map shape. */ class MapShape extends Shape { /** @var Shape */ private $value; /** @var Shape */ private $key; public function __construct(array $definition, ShapeMap $shapeMap) { $definition['type'] = 'map'; parent::__construct($definition, $shapeMap); } /** * @return Shape * @throws \RuntimeException if no value is specified */ public function getValue() { if (!$this->value) { if (!isset($this->definition['value'])) { throw new \RuntimeException('No value specified'); } $this->value = Shape::create( $this->definition['value'], $this->shapeMap ); } return $this->value; } /** * @return Shape */ public function getKey() { if (!$this->key) { $this->key = isset($this->definition['key']) ? Shape::create($this->definition['key'], $this->shapeMap) : new Shape(['type' => 'string'], $this->shapeMap); } return $this->key; } }