<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

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