<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for removePatterns StructType
 * @subpackage Structs
 */
class RemovePatterns extends XCommonMembersExtension
{
    /**
     * The pattern
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember[]
     */
    public $pattern;
    /**
     * Constructor method for removePatterns
     * @uses RemovePatterns::setPattern()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember[] $pattern
     */
    public function __construct(array $pattern = array())
    {
        $this
            ->setPattern($pattern);
    }
    /**
     * Get pattern value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember[]
     */
    public function getPattern()
    {
        return $this->pattern;
    }
    /**
     * Set pattern value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember[] $pattern
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemovePatterns
     */
    public function setPattern(array $pattern = array())
    {
        $this->pattern = $pattern;
        return $this;
    }
    /**
     * Add item to pattern value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemovePatterns
     */
    public function addToPattern(\\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember $item)
    {
        $this->pattern[] = $item;
        return $this;
    }
}
