File: application/modules/extensions/aws/Aws/Api/ListShape.php

Recommend this page to a friend!
  Classes of Tran Tuan  >  Pretty PHP S3 Files Manager  >  application/modules/extensions/aws/Aws/Api/ListShape.php  >  Download  
File: application/modules/extensions/aws/Aws/Api/ListShape.php
Role: Application script
Content type: text/plain
Description: Application script
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 4 years ago
Size: 786 bytes
 

Contents

Class file image Download
<?php
namespace 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;
    }
}


For more information send a message to info at phpclasses dot org.