PluginProbe
Media Cloud Sync / 1.0.2
Media Cloud Sync v1.0.2
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / s3 / Aws / Api / ListShape.php

ListShape.php in Media Cloud Sync 1.0.2, at includes/sdk/s3/Aws/Api/ListShape.php

31 lines 757 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\s3\Aws\Api;
4
5 /**
6 * Represents a list shape.
7 */
8 class ListShape extends Shape
9 {
10 private $member;
11 public function __construct(array $definition, ShapeMap $shapeMap)
12 {
13 $definition['type'] = 'list';
14 parent::__construct($definition, $shapeMap);
15 }
16 /**
17 * @return Shape
18 * @throws \RuntimeException if no member is specified
19 */
20 public function getMember()
21 {
22 if (!$this->member) {
23 if (!isset($this->definition['member'])) {
24 throw new \RuntimeException('No member attribute specified');
25 }
26 $this->member = Shape::create($this->definition['member'], $this->shapeMap);
27 }
28 return $this->member;
29 }
30 }
31