<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for members StructType
 * Meta information extracted from the WSDL
 * - documentation: On Addition always the first member added is itself. Do not specify the first member as itself in an Add request . Also make sure that the priority always starts with 1. It will internally be taken care of during Addition and
 * Updation.
 * @subpackage Structs
 */
class Members 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 members
     * @uses Members::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\Members
     */
    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\Members
     */
    public function addToMember(\\Losc\CucmBundle\Model\Webservice\StructType\XTimeScheduleTimePeriod $item)
    {
        $this->member[] = $item;
        return $this;
    }
}
