<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for destination StructType
 * @subpackage Structs
 */
class Destination extends AbstractStructBase
{
    /**
     * The gatewayName
     * Meta information extracted from the WSDL
     * - choice: gatewayName | routeListName | gatewayName | routeListName | gatewayName | routeListName
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $gatewayName;
    /**
     * The routeListName
     * Meta information extracted from the WSDL
     * - choice: gatewayName | routeListName | gatewayName | routeListName | gatewayName | routeListName
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $routeListName;
    /**
     * Constructor method for destination
     * @uses Destination::setGatewayName()
     * @uses Destination::setRouteListName()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $gatewayName
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $routeListName
     */
    public function __construct(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $gatewayName = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $routeListName = null)
    {
        $this
            ->setGatewayName($gatewayName)
            ->setRouteListName($routeListName);
    }
    /**
     * Get gatewayName value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XFkType|null
     */
    public function getGatewayName()
    {
        return isset($this->gatewayName) ? $this->gatewayName : null;
    }
    /**
     * Set gatewayName value
     * This property belongs to a choice that allows only one property to exist. It is
     * therefore removable from the request, consequently if the value assigned to this
     * property is null, the property is removed from this object
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $gatewayName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Destination
     */
    public function setGatewayName(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $gatewayName = null)
    {
        if (is_null($gatewayName) || (is_array($gatewayName) && empty($gatewayName))) {
            unset($this->gatewayName);
        } else {
            $this->gatewayName = $gatewayName;
        }
        return $this;
    }
    /**
     * Get routeListName value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XFkType|null
     */
    public function getRouteListName()
    {
        return isset($this->routeListName) ? $this->routeListName : null;
    }
    /**
     * Set routeListName value
     * This property belongs to a choice that allows only one property to exist. It is
     * therefore removable from the request, consequently if the value assigned to this
     * property is null, the property is removed from this object
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $routeListName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Destination
     */
    public function setRouteListName(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $routeListName = null)
    {
        if (is_null($routeListName) || (is_array($routeListName) && empty($routeListName))) {
            unset($this->routeListName);
        } else {
            $this->routeListName = $routeListName;
        }
        return $this;
    }
}
