<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.Crm.DeleteTicketSchemeEnrollments.Request
 * StructType
 * @subpackage Structs
 */
class BizAction_Crm_DeleteTicketSchemeEnrollments_Request extends AnyEntity
{
    /**
     * The EnrollmentIds
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\EnrollmentIds
     */
    public $EnrollmentIds;
    /**
     * Constructor method for BizAction.Crm.DeleteTicketSchemeEnrollments.Request
     * @uses BizAction_Crm_DeleteTicketSchemeEnrollments_Request::setEnrollmentIds()
     * @param \patest\StructType\EnrollmentIds $enrollmentIds
     */
    public function __construct(\patest\StructType\EnrollmentIds $enrollmentIds = null)
    {
        $this
            ->setEnrollmentIds($enrollmentIds);
    }
    /**
     * Get EnrollmentIds 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\EnrollmentIds|null
     */
    public function getEnrollmentIds()
    {
        return isset($this->EnrollmentIds) ? $this->EnrollmentIds : null;
    }
    /**
     * Set EnrollmentIds 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\EnrollmentIds $enrollmentIds
     * @return \patest\StructType\BizAction_Crm_DeleteTicketSchemeEnrollments_Request
     */
    public function setEnrollmentIds(\patest\StructType\EnrollmentIds $enrollmentIds = null)
    {
        if (is_null($enrollmentIds) || (is_array($enrollmentIds) && empty($enrollmentIds))) {
            unset($this->EnrollmentIds);
        } else {
            $this->EnrollmentIds = $enrollmentIds;
        }
        return $this;
    }
}
