<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AddLocationReq StructType
 * @subpackage Structs
 */
class AddLocationReq extends APIRequest
{
    /**
     * The location
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XLocation
     */
    public $location;
    /**
     * Constructor method for AddLocationReq
     * @uses AddLocationReq::setLocation()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XLocation $location
     */
    public function __construct(\\Losc\CucmBundle\Model\Webservice\StructType\XLocation $location = null)
    {
        $this
            ->setLocation($location);
    }
    /**
     * Get location value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XLocation|null
     */
    public function getLocation()
    {
        return $this->location;
    }
    /**
     * Set location value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XLocation $location
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddLocationReq
     */
    public function setLocation(\\Losc\CucmBundle\Model\Webservice\StructType\XLocation $location = null)
    {
        $this->location = $location;
        return $this;
    }
}
