<?php

namespace Sabre\OTAPing\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CuisineCodes Structs
 * Meta informations extracted from the WSDL
 * - documentation: Collection of cuisine types of restaurant.
 * @subpackage Structs
 */
class CuisineCodes extends AbstractStructBase
{
    /**
     * The CuisineCode
     * Meta informations extracted from the WSDL
     * - maxOccurs: unbounded
     * @var \Sabre\OTAPing\Structs\CuisineCode[]
     */
    public $CuisineCode;
    /**
     * Constructor method for CuisineCodes
     * @uses CuisineCodes::setCuisineCode()
     * @param \Sabre\OTAPing\Structs\CuisineCode[] $cuisineCode
     */
    public function __construct(array $cuisineCode = array())
    {
        $this
            ->setCuisineCode($cuisineCode);
    }
    /**
     * Get CuisineCode value
     * @return \Sabre\OTAPing\Structs\CuisineCode[]|null
     */
    public function getCuisineCode()
    {
        return $this->CuisineCode;
    }
    /**
     * Set CuisineCode value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAPing\Structs\CuisineCode[] $cuisineCode
     * @return \Sabre\OTAPing\Structs\CuisineCodes
     */
    public function setCuisineCode(array $cuisineCode = array())
    {
        $this->CuisineCode = $cuisineCode;
        return $this;
    }
    /**
     * Add item to CuisineCode value
     * @throws \InvalidArgumentException
     * @param \Sabre\OTAPing\Structs\CuisineCode $item
     * @return \Sabre\OTAPing\Structs\CuisineCodes
     */
    public function addToCuisineCode(\Sabre\OTAPing\Structs\CuisineCode $item)
    {
        $this->CuisineCode[] = $item;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \Sabre\OTAPing\Structs\CuisineCodes
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
