<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for
 * BizAction.Crm.RemoveMembershipAutoRenewalEnrollments.Request StructType
 * @subpackage Structs
 */
class BizAction_Crm_RemoveMembershipAutoRenewalEnrollments_Request extends AnyEntity
{
    /**
     * The MembershipIds
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\MembershipIds
     */
    public $MembershipIds;
    /**
     * Constructor method for
     * BizAction.Crm.RemoveMembershipAutoRenewalEnrollments.Request
     * @uses BizAction_Crm_RemoveMembershipAutoRenewalEnrollments_Request::setMembershipIds()
     * @param \patest\StructType\MembershipIds $membershipIds
     */
    public function __construct(\patest\StructType\MembershipIds $membershipIds = null)
    {
        $this
            ->setMembershipIds($membershipIds);
    }
    /**
     * Get MembershipIds value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\StructType\MembershipIds|null
     */
    public function getMembershipIds()
    {
        return isset($this->MembershipIds) ? $this->MembershipIds : null;
    }
    /**
     * Set MembershipIds value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\StructType\MembershipIds $membershipIds
     * @return \patest\StructType\BizAction_Crm_RemoveMembershipAutoRenewalEnrollments_Request
     */
    public function setMembershipIds(\patest\StructType\MembershipIds $membershipIds = null)
    {
        if (is_null($membershipIds) || (is_array($membershipIds) && empty($membershipIds))) {
            unset($this->MembershipIds);
        } else {
            $this->MembershipIds = $membershipIds;
        }
        return $this;
    }
}
