<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for OXBLFDirectedCallPark StructType
 * @subpackage Structs
 */
class OXBLFDirectedCallPark extends AbstractStructBase
{
    /**
     * The directedCallParkId
     * Meta information extracted from the WSDL
     * - documentation: Only the uuid attribute is read
     * - base: xsd:string
     * - choice: directedCallParkId | directedCallParkDnAndPartition
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * - pattern: \{........-....-....-....-............\}
     * @var string
     */
    public $directedCallParkId;
    /**
     * The directedCallParkDnAndPartition
     * Meta information extracted from the WSDL
     * - choice: directedCallParkId | directedCallParkDnAndPartition
     * - choiceMaxOccurs: 1
     * - choiceMinOccurs: 0
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\DirectedCallParkDnAndPartition
     */
    public $directedCallParkDnAndPartition;
    /**
     * Constructor method for OXBLFDirectedCallPark
     * @uses OXBLFDirectedCallPark::setDirectedCallParkId()
     * @uses OXBLFDirectedCallPark::setDirectedCallParkDnAndPartition()
     * @param string $directedCallParkId
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\DirectedCallParkDnAndPartition $directedCallParkDnAndPartition
     */
    public function __construct($directedCallParkId = null, \\Losc\CucmBundle\Model\Webservice\StructType\DirectedCallParkDnAndPartition $directedCallParkDnAndPartition = null)
    {
        $this
            ->setDirectedCallParkId($directedCallParkId)
            ->setDirectedCallParkDnAndPartition($directedCallParkDnAndPartition);
    }
    /**
     * Get directedCallParkId value
     * @return string|null
     */
    public function getDirectedCallParkId()
    {
        return isset($this->directedCallParkId) ? $this->directedCallParkId : null;
    }
    /**
     * Set directedCallParkId 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 string $directedCallParkId
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\OXBLFDirectedCallPark
     */
    public function setDirectedCallParkId($directedCallParkId = null)
    {
        if (is_null($directedCallParkId) || (is_array($directedCallParkId) && empty($directedCallParkId))) {
            unset($this->directedCallParkId);
        } else {
            $this->directedCallParkId = $directedCallParkId;
        }
        return $this;
    }
    /**
     * Get directedCallParkDnAndPartition value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\DirectedCallParkDnAndPartition|null
     */
    public function getDirectedCallParkDnAndPartition()
    {
        return isset($this->directedCallParkDnAndPartition) ? $this->directedCallParkDnAndPartition : null;
    }
    /**
     * Set directedCallParkDnAndPartition 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\DirectedCallParkDnAndPartition $directedCallParkDnAndPartition
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\OXBLFDirectedCallPark
     */
    public function setDirectedCallParkDnAndPartition(\\Losc\CucmBundle\Model\Webservice\StructType\DirectedCallParkDnAndPartition $directedCallParkDnAndPartition = null)
    {
        if (is_null($directedCallParkDnAndPartition) || (is_array($directedCallParkDnAndPartition) && empty($directedCallParkDnAndPartition))) {
            unset($this->directedCallParkDnAndPartition);
        } else {
            $this->directedCallParkDnAndPartition = $directedCallParkDnAndPartition;
        }
        return $this;
    }
}
