<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for associatedTodAccess StructType
 * Meta information extracted from the WSDL
 * - documentation: Read-Only. List of the todAccess entries associated with this EndUser.
 * @subpackage Structs
 */
class AssociatedTodAccess extends AbstractStructBase
{
    /**
     * The todAccess
     * Meta information extracted from the WSDL
     * - documentation: Name of the todAccess.
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var string[]
     */
    public $todAccess;
    /**
     * Constructor method for associatedTodAccess
     * @uses AssociatedTodAccess::setTodAccess()
     * @param string[] $todAccess
     */
    public function __construct(array $todAccess = array())
    {
        $this
            ->setTodAccess($todAccess);
    }
    /**
     * Get todAccess value
     * @return string[]|null
     */
    public function getTodAccess()
    {
        return $this->todAccess;
    }
    /**
     * Set todAccess value
     * @param string[] $todAccess
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AssociatedTodAccess
     */
    public function setTodAccess(array $todAccess = array())
    {
        $this->todAccess = $todAccess;
        return $this;
    }
    /**
     * Add item to todAccess value
     * @throws \InvalidArgumentException
     * @param string $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AssociatedTodAccess
     */
    public function addToTodAccess($item)
    {
        $this->todAccess[] = $item;
        return $this;
    }
}
