<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for removeCallStates StructType
 * @subpackage Structs
 */
class RemoveCallStates extends AbstractStructBase
{
    /**
     * The callState
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XCallStateMember[]
     */
    public $callState;
    /**
     * Constructor method for removeCallStates
     * @uses RemoveCallStates::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\RemoveCallStates
     */
    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\RemoveCallStates
     */
    public function addToCallState(\\Losc\CucmBundle\Model\Webservice\StructType\XCallStateMember $item)
    {
        $this->callState[] = $item;
        return $this;
    }
}
