<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for removeRelatedPolicies StructType
 * @subpackage Structs
 */
class RemoveRelatedPolicies extends XCommonMembersExtension
{
    /**
     * The relatedPolicy
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 1
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XPolicyRelationship[]
     */
    public $relatedPolicy;
    /**
     * Constructor method for removeRelatedPolicies
     * @uses RemoveRelatedPolicies::setRelatedPolicy()
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XPolicyRelationship[] $relatedPolicy
     */
    public function __construct(array $relatedPolicy = array())
    {
        $this
            ->setRelatedPolicy($relatedPolicy);
    }
    /**
     * Get relatedPolicy value
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XPolicyRelationship[]
     */
    public function getRelatedPolicy()
    {
        return $this->relatedPolicy;
    }
    /**
     * Set relatedPolicy value
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XPolicyRelationship[] $relatedPolicy
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveRelatedPolicies
     */
    public function setRelatedPolicy(array $relatedPolicy = array())
    {
        $this->relatedPolicy = $relatedPolicy;
        return $this;
    }
    /**
     * Add item to relatedPolicy value
     * @throws \InvalidArgumentException
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XPolicyRelationship $item
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\RemoveRelatedPolicies
     */
    public function addToRelatedPolicy(\\Losc\CucmBundle\Model\Webservice\StructType\XPolicyRelationship $item)
    {
        $this->relatedPolicy[] = $item;
        return $this;
    }
}
