<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Membership.MembershipEntryBatch StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:Membership.MembershipEntryBatch
 * @subpackage Structs
 */
class Membership_MembershipEntryBatch extends Facade_ProductEntryBatch
{
    /**
     * The Details
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfMembership_MembershipEntryDetail
     */
    public $Details;
    /**
     * Constructor method for Membership.MembershipEntryBatch
     * @uses Membership_MembershipEntryBatch::setDetails()
     * @param \patest\StructType\RecordSetOfMembership_MembershipEntryDetail $details
     */
    public function __construct(\patest\StructType\RecordSetOfMembership_MembershipEntryDetail $details = null)
    {
        $this
            ->setDetails($details);
    }
    /**
     * Get Details 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\RecordSetOfMembership_MembershipEntryDetail|null
     */
    public function getDetails()
    {
        return isset($this->Details) ? $this->Details : null;
    }
    /**
     * Set Details 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\RecordSetOfMembership_MembershipEntryDetail $details
     * @return \patest\StructType\Membership_MembershipEntryBatch
     */
    public function setDetails(\patest\StructType\RecordSetOfMembership_MembershipEntryDetail $details = null)
    {
        if (is_null($details) || (is_array($details) && empty($details))) {
            unset($this->Details);
        } else {
            $this->Details = $details;
        }
        return $this;
    }
}
