# media-cloud-sync/1.1.1/includes/sdk/s3/Aws/Api/ListShape.php

Media Cloud Sync, version 1.1.1. 31 lines.

- Page: https://pluginprobe.com/plugins/media-cloud-sync/1.1.1/code/includes/sdk/s3/Aws/Api/ListShape.php
- Raw: https://pluginprobe.com/plugins/media-cloud-sync/1.1.1/raw/includes/sdk/s3/Aws/Api/ListShape.php
- Modified: 2024-10-27T10:40:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/media-cloud-sync/1.1.1/code/includes/sdk/s3/Aws/Api/ListShape.php#L10-L20`.

```php
<?php

namespace Dudlewebs\WPMCS\s3\Aws\Api;

/**
 * Represents a list shape.
 */
class ListShape extends Shape
{
    private $member;
    public function __construct(array $definition, ShapeMap $shapeMap)
    {
        $definition['type'] = 'list';
        parent::__construct($definition, $shapeMap);
    }
    /**
     * @return Shape
     * @throws \RuntimeException if no member is specified
     */
    public function getMember()
    {
        if (!$this->member) {
            if (!isset($this->definition['member'])) {
                throw new \RuntimeException('No member attribute specified');
            }
            $this->member = Shape::create($this->definition['member'], $this->shapeMap);
        }
        return $this->member;
    }
}

```
