<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for plars StructType
 * Meta information extracted from the WSDL
 * - documentation: Plars details cannot be added for dial pattern of type 7905_7912
 * @subpackage Structs
 */
class Plars extends XCommonMembersExtension
{
    /**
     * The plar
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember[]
     */
    public $plar;
    /**
     * Constructor method for plars
     * @uses Plars::setPlar()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember[] $plar
     */
    public function __construct(array $plar = array())
    {
        $this
            ->setPlar($plar);
    }
    /**
     * Get plar value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember[]|null
     */
    public function getPlar()
    {
        return $this->plar;
    }
    /**
     * Set plar value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember[] $plar
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Plars
     */
    public function setPlar(array $plar = array())
    {
        $this->plar = $plar;
        return $this;
    }
    /**
     * Add item to plar value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\Plars
     */
    public function addToPlar(\\Losc\CucmBundle\Model\Webservice\StructType\XPatternMember $item)
    {
        $this->plar[] = $item;
        return $this;
    }
}
