<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

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