<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for XTODAccessMember StructType
 * @subpackage Structs
 */
class XTODAccessMember extends AbstractStructBase
{
    /**
     * The timeScheduleName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $timeScheduleName;
    /**
     * The accessListName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $accessListName;
    /**
     * Constructor method for XTODAccessMember
     * @uses XTODAccessMember::setTimeScheduleName()
     * @uses XTODAccessMember::setAccessListName()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $timeScheduleName
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $accessListName
     */
    public function __construct(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $timeScheduleName = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $accessListName = null)
    {
        $this
            ->setTimeScheduleName($timeScheduleName)
            ->setAccessListName($accessListName);
    }
    /**
     * Get timeScheduleName value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XFkType|null
     */
    public function getTimeScheduleName()
    {
        return isset($this->timeScheduleName) ? $this->timeScheduleName : null;
    }
    /**
     * Set timeScheduleName value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $timeScheduleName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XTODAccessMember
     */
    public function setTimeScheduleName(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $timeScheduleName = null)
    {
        if (is_null($timeScheduleName) || (is_array($timeScheduleName) && empty($timeScheduleName))) {
            unset($this->timeScheduleName);
        } else {
            $this->timeScheduleName = $timeScheduleName;
        }
        return $this;
    }
    /**
     * Get accessListName value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XFkType|null
     */
    public function getAccessListName()
    {
        return isset($this->accessListName) ? $this->accessListName : null;
    }
    /**
     * Set accessListName value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $accessListName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XTODAccessMember
     */
    public function setAccessListName(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $accessListName = null)
    {
        if (is_null($accessListName) || (is_array($accessListName) && empty($accessListName))) {
            unset($this->accessListName);
        } else {
            $this->accessListName = $accessListName;
        }
        return $this;
    }
}
