<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

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