<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for addMembers StructType
 * @subpackage Structs
 */
class AddMembers extends XCommonMembersExtension
{
    /**
     * The member
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XTimeScheduleTimePeriod[]
     */
    public $member;
    /**
     * Constructor method for addMembers
     * @uses AddMembers::setMember()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XTimeScheduleTimePeriod[] $member
     */
    public function __construct(array $member = array())
    {
        $this
            ->setMember($member);
    }
    /**
     * Get member value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XTimeScheduleTimePeriod[]|null
     */
    public function getMember()
    {
        return $this->member;
    }
    /**
     * Set member value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XTimeScheduleTimePeriod[] $member
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddMembers
     */
    public function setMember(array $member = array())
    {
        $this->member = $member;
        return $this;
    }
    /**
     * Add item to member value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XTimeScheduleTimePeriod $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\AddMembers
     */
    public function addToMember(\\Losc\CucmBundle\Model\Webservice\StructType\XTimeScheduleTimePeriod $item)
    {
        $this->member[] = $item;
        return $this;
    }
}
