<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

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