<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for relatedGroups StructType
 * Meta information extracted from the WSDL
 * - documentation: Read-only. AXL API automatically adds the required entries in the AARDialPrefixMatrix table.
 * @subpackage Structs
 */
class RelatedGroups extends AbstractStructBase
{
    /**
     * The relatedGroup
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\RAarGroupRelationship[]
     */
    public $relatedGroup;
    /**
     * Constructor method for relatedGroups
     * @uses RelatedGroups::setRelatedGroup()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RAarGroupRelationship[] $relatedGroup
     */
    public function __construct(array $relatedGroup = array())
    {
        $this
            ->setRelatedGroup($relatedGroup);
    }
    /**
     * Get relatedGroup value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RAarGroupRelationship[]|null
     */
    public function getRelatedGroup()
    {
        return $this->relatedGroup;
    }
    /**
     * Set relatedGroup value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RAarGroupRelationship[] $relatedGroup
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RelatedGroups
     */
    public function setRelatedGroup(array $relatedGroup = array())
    {
        $this->relatedGroup = $relatedGroup;
        return $this;
    }
    /**
     * Add item to relatedGroup value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\RAarGroupRelationship $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RelatedGroups
     */
    public function addToRelatedGroup(\\Losc\CucmBundle\Model\Webservice\StructType\RAarGroupRelationship $item)
    {
        $this->relatedGroup[] = $item;
        return $this;
    }
}
