<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

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