<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for callStates StructType
 * @subpackage Structs
 */
class CallStates extends AbstractStructBase
{
    /**
     * The callState
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XCallStateMember[]
     */
    public $callState;
    /**
     * Constructor method for callStates
     * @uses CallStates::setCallState()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XCallStateMember[] $callState
     */
    public function __construct(array $callState = array())
    {
        $this
            ->setCallState($callState);
    }
    /**
     * Get callState value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XCallStateMember[]|null
     */
    public function getCallState()
    {
        return $this->callState;
    }
    /**
     * Set callState value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XCallStateMember[] $callState
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\CallStates
     */
    public function setCallState(array $callState = array())
    {
        $this->callState = $callState;
        return $this;
    }
    /**
     * Add item to callState value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XCallStateMember $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\CallStates
     */
    public function addToCallState(\\Losc\CucmBundle\Model\Webservice\StructType\XCallStateMember $item)
    {
        $this->callState[] = $item;
        return $this;
    }
}
