<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for lineAssociations StructType
 * Meta information extracted from the WSDL
 * - documentation: The line association for this remote destination. The line to be associated must already be added to the remote destination profile. All directory numbers specified must already exist in the database.
 * @subpackage Structs
 */
class LineAssociations extends AbstractStructBase
{
    /**
     * The lineAssociation
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XLineAssociation[]
     */
    public $lineAssociation;
    /**
     * Constructor method for lineAssociations
     * @uses LineAssociations::setLineAssociation()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XLineAssociation[] $lineAssociation
     */
    public function __construct(array $lineAssociation = array())
    {
        $this
            ->setLineAssociation($lineAssociation);
    }
    /**
     * Get lineAssociation value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XLineAssociation[]|null
     */
    public function getLineAssociation()
    {
        return $this->lineAssociation;
    }
    /**
     * Set lineAssociation value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XLineAssociation[] $lineAssociation
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\LineAssociations
     */
    public function setLineAssociation(array $lineAssociation = array())
    {
        $this->lineAssociation = $lineAssociation;
        return $this;
    }
    /**
     * Add item to lineAssociation value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XLineAssociation $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\LineAssociations
     */
    public function addToLineAssociation(\\Losc\CucmBundle\Model\Webservice\StructType\XLineAssociation $item)
    {
        $this->lineAssociation[] = $item;
        return $this;
    }
}
