<?php

namespace \Losc\CucmBundle\Model\Webservice\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for relatedRegions StructType
 * @subpackage Structs
 */
class RelatedRegions extends AbstractStructBase
{
    /**
     * The relatedRegion
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XRegionRelationship[]
     */
    public $relatedRegion;
    /**
     * Constructor method for relatedRegions
     * @uses RelatedRegions::setRelatedRegion()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XRegionRelationship[] $relatedRegion
     */
    public function __construct(array $relatedRegion = array())
    {
        $this
            ->setRelatedRegion($relatedRegion);
    }
    /**
     * Get relatedRegion value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XRegionRelationship[]|null
     */
    public function getRelatedRegion()
    {
        return $this->relatedRegion;
    }
    /**
     * Set relatedRegion value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XRegionRelationship[] $relatedRegion
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RelatedRegions
     */
    public function setRelatedRegion(array $relatedRegion = array())
    {
        $this->relatedRegion = $relatedRegion;
        return $this;
    }
    /**
     * Add item to relatedRegion value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XRegionRelationship $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RelatedRegions
     */
    public function addToRelatedRegion(\\Losc\CucmBundle\Model\Webservice\StructType\XRegionRelationship $item)
    {
        $this->relatedRegion[] = $item;
        return $this;
    }
}
