X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/vendor/aws/aws-sdk-php/src/Api
home
/
gfecatvj
/
sites
/
realesbar
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Api
/
📁
..
📄
AbstractModel.php
(1.52 KB)
📄
ApiProvider.php
(7.47 KB)
📄
DateTimeResult.php
(2.87 KB)
📄
DocModel.php
(3.08 KB)
📁
ErrorParser
📄
ListShape.php
(786 B)
📄
MapShape.php
(1.14 KB)
📄
Operation.php
(2.22 KB)
📁
Parser
📁
Serializer
📄
Service.php
(12.09 KB)
📄
Shape.php
(1.71 KB)
📄
ShapeMap.php
(1.46 KB)
📄
StructureShape.php
(1.65 KB)
📄
TimestampShape.php
(1.44 KB)
📄
Validator.php
(8.16 KB)
Editing: MapShape.php
<?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; } }
Upload File
Create Folder