<?php
/**
 * PackageImages
 *
 * PHP version 5
 *
 * @category Class
 * @package  Swagger\Client
 * @author   http://github.com/swagger-api/swagger-codegen
 * @license  http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * Swagger Blended Hub API Explorer
 *
 * A collection of Swagger documentation for the Blended Hub APIs.
 *
 * OpenAPI spec version: 1.0.0
 * Contact: api@blended.co
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace Swagger\Client\Model;

use \ArrayAccess;

/**
 * PackageImages Class Doc Comment
 *
 * @category    Class */
/** 
 * @package     Swagger\Client
 * @author      http://github.com/swagger-api/swagger-codegen
 * @license     http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
 * @link        https://github.com/swagger-api/swagger-codegen
 */
class PackageImages implements ArrayAccess
{
    /**
      * The original name of the model.
      * @var string
      */
    protected static $swaggerModelName = 'PackageImages';

    /**
      * Array of property to type mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerTypes = array(
        'thumbnail_image' => 'string[]',
        'details_image' => 'string[]',
        'block_layout_image' => 'string[]',
        'grid_layout_image' => 'string[]'
    );

    public static function swaggerTypes()
    {
        return self::$swaggerTypes;
    }

    /**
     * Array of attributes where the key is the local name, and the value is the original name
     * @var string[]
     */
    protected static $attributeMap = array(
        'thumbnail_image' => 'thumbnail_image',
        'details_image' => 'details_image',
        'block_layout_image' => 'block_layout_image',
        'grid_layout_image' => 'grid_layout_image'
    );

    public static function attributeMap()
    {
        return self::$attributeMap;
    }

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     * @var string[]
     */
    protected static $setters = array(
        'thumbnail_image' => 'setThumbnailImage',
        'details_image' => 'setDetailsImage',
        'block_layout_image' => 'setBlockLayoutImage',
        'grid_layout_image' => 'setGridLayoutImage'
    );

    public static function setters()
    {
        return self::$setters;
    }

    /**
     * Array of attributes to getter functions (for serialization of requests)
     * @var string[]
     */
    protected static $getters = array(
        'thumbnail_image' => 'getThumbnailImage',
        'details_image' => 'getDetailsImage',
        'block_layout_image' => 'getBlockLayoutImage',
        'grid_layout_image' => 'getGridLayoutImage'
    );

    public static function getters()
    {
        return self::$getters;
    }

    

    

    /**
     * Associative array for storing property values
     * @var mixed[]
     */
    protected $container = array();

    /**
     * Constructor
     * @param mixed[] $data Associated array of property value initalizing the model
     */
    public function __construct(array $data = null)
    {
        $this->container['thumbnail_image'] = isset($data['thumbnail_image']) ? $data['thumbnail_image'] : null;
        $this->container['details_image'] = isset($data['details_image']) ? $data['details_image'] : null;
        $this->container['block_layout_image'] = isset($data['block_layout_image']) ? $data['block_layout_image'] : null;
        $this->container['grid_layout_image'] = isset($data['grid_layout_image']) ? $data['grid_layout_image'] : null;
    }

    /**
     * show all the invalid properties with reasons.
     *
     * @return array invalid properties with reasons
     */
    public function listInvalidProperties()
    {
        $invalid_properties = array();
        return $invalid_properties;
    }

    /**
     * validate all the properties in the model
     * return true if all passed
     *
     * @return bool True if all properteis are valid
     */
    public function valid()
    {
        return true;
    }


    /**
     * Gets thumbnail_image
     * @return string[]
     */
    public function getThumbnailImage()
    {
        return $this->container['thumbnail_image'];
    }

    /**
     * Sets thumbnail_image
     * @param string[] $thumbnail_image image name and hash.
     * @return $this
     */
    public function setThumbnailImage($thumbnail_image)
    {
        $this->container['thumbnail_image'] = $thumbnail_image;

        return $this;
    }

    /**
     * Gets details_image
     * @return string[]
     */
    public function getDetailsImage()
    {
        return $this->container['details_image'];
    }

    /**
     * Sets details_image
     * @param string[] $details_image image name and hash.
     * @return $this
     */
    public function setDetailsImage($details_image)
    {
        $this->container['details_image'] = $details_image;

        return $this;
    }

    /**
     * Gets block_layout_image
     * @return string[]
     */
    public function getBlockLayoutImage()
    {
        return $this->container['block_layout_image'];
    }

    /**
     * Sets block_layout_image
     * @param string[] $block_layout_image image name and hash
     * @return $this
     */
    public function setBlockLayoutImage($block_layout_image)
    {
        $this->container['block_layout_image'] = $block_layout_image;

        return $this;
    }

    /**
     * Gets grid_layout_image
     * @return string[]
     */
    public function getGridLayoutImage()
    {
        return $this->container['grid_layout_image'];
    }

    /**
     * Sets grid_layout_image
     * @param string[] $grid_layout_image image name and hash.
     * @return $this
     */
    public function setGridLayoutImage($grid_layout_image)
    {
        $this->container['grid_layout_image'] = $grid_layout_image;

        return $this;
    }
    /**
     * Returns true if offset exists. False otherwise.
     * @param  integer $offset Offset
     * @return boolean
     */
    public function offsetExists($offset)
    {
        return isset($this->container[$offset]);
    }

    /**
     * Gets offset.
     * @param  integer $offset Offset
     * @return mixed
     */
    public function offsetGet($offset)
    {
        return isset($this->container[$offset]) ? $this->container[$offset] : null;
    }

    /**
     * Sets value based on offset.
     * @param  integer $offset Offset
     * @param  mixed   $value  Value to be set
     * @return void
     */
    public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

    /**
     * Unsets offset.
     * @param  integer $offset Offset
     * @return void
     */
    public function offsetUnset($offset)
    {
        unset($this->container[$offset]);
    }

    /**
     * Gets the string presentation of the object
     * @return string
     */
    public function __toString()
    {
        if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
            return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
        }

        return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this));
    }
}


