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: StructureShape.php
<?php namespace Aws\Api; /** * Represents a structure shape and resolve member shape references. */ class StructureShape extends Shape { /** * @var Shape[] */ private $members; public function __construct(array $definition, ShapeMap $shapeMap) { $definition['type'] = 'structure'; if (!isset($definition['members'])) { $definition['members'] = []; } parent::__construct($definition, $shapeMap); } /** * Gets a list of all members * * @return Shape[] */ public function getMembers() { if (empty($this->members)) { $this->generateMembersHash(); } return $this->members; } /** * Check if a specific member exists by name. * * @param string $name Name of the member to check * * @return bool */ public function hasMember($name) { return isset($this->definition['members'][$name]); } /** * Retrieve a member by name. * * @param string $name Name of the member to retrieve * * @return Shape * @throws \InvalidArgumentException if the member is not found. */ public function getMember($name) { $members = $this->getMembers(); if (!isset($members[$name])) { throw new \InvalidArgumentException('Unknown member ' . $name); } return $members[$name]; } private function generateMembersHash() { $this->members = []; foreach ($this->definition['members'] as $name => $definition) { $this->members[$name] = $this->shapeFor($definition); } } }
Upload File
Create Folder