<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for lineAppearanceAssociationForPresences StructType
 * Meta information extracted from the WSDL
 * - documentation: Applicable for Controlled Devices
 * @subpackage Structs
 */
class LineAppearanceAssociationForPresences extends AbstractStructBase
{
    /**
     * The lineAppearanceAssociationForPresence
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XLineAppearanceAssociationForPresence[]
     */
    public $lineAppearanceAssociationForPresence;
    /**
     * Constructor method for lineAppearanceAssociationForPresences
     * @uses LineAppearanceAssociationForPresences::setLineAppearanceAssociationForPresence()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XLineAppearanceAssociationForPresence[] $lineAppearanceAssociationForPresence
     */
    public function __construct(array $lineAppearanceAssociationForPresence = array())
    {
        $this
            ->setLineAppearanceAssociationForPresence($lineAppearanceAssociationForPresence);
    }
    /**
     * Get lineAppearanceAssociationForPresence value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XLineAppearanceAssociationForPresence[]|null
     */
    public function getLineAppearanceAssociationForPresence()
    {
        return $this->lineAppearanceAssociationForPresence;
    }
    /**
     * Set lineAppearanceAssociationForPresence value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XLineAppearanceAssociationForPresence[] $lineAppearanceAssociationForPresence
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\LineAppearanceAssociationForPresences
     */
    public function setLineAppearanceAssociationForPresence(array $lineAppearanceAssociationForPresence = array())
    {
        $this->lineAppearanceAssociationForPresence = $lineAppearanceAssociationForPresence;
        return $this;
    }
    /**
     * Add item to lineAppearanceAssociationForPresence value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XLineAppearanceAssociationForPresence $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\LineAppearanceAssociationForPresences
     */
    public function addToLineAppearanceAssociationForPresence(\\Losc\CucmBundle\Model\Webservice\StructType\XLineAppearanceAssociationForPresence $item)
    {
        $this->lineAppearanceAssociationForPresence[] = $item;
        return $this;
    }
}
