<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Membership.Printing.JointMembershipInfo StructType
 * @subpackage Structs
 */
class Membership_Printing_JointMembershipInfo extends Membership_Printing_JointMembershipInfoSingleMember
{
    /**
     * The AllMembers
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfMembership_Printing_JointMembershipInfoSingleMember
     */
    public $AllMembers;
    /**
     * Constructor method for Membership.Printing.JointMembershipInfo
     * @uses Membership_Printing_JointMembershipInfo::setAllMembers()
     * @param \patest\StructType\RecordSetOfMembership_Printing_JointMembershipInfoSingleMember $allMembers
     */
    public function __construct(\patest\StructType\RecordSetOfMembership_Printing_JointMembershipInfoSingleMember $allMembers = null)
    {
        $this
            ->setAllMembers($allMembers);
    }
    /**
     * Get AllMembers 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_Printing_JointMembershipInfoSingleMember|null
     */
    public function getAllMembers()
    {
        return isset($this->AllMembers) ? $this->AllMembers : null;
    }
    /**
     * Set AllMembers 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_Printing_JointMembershipInfoSingleMember $allMembers
     * @return \patest\StructType\Membership_Printing_JointMembershipInfo
     */
    public function setAllMembers(\patest\StructType\RecordSetOfMembership_Printing_JointMembershipInfoSingleMember $allMembers = null)
    {
        if (is_null($allMembers) || (is_array($allMembers) && empty($allMembers))) {
            unset($this->AllMembers);
        } else {
            $this->AllMembers = $allMembers;
        }
        return $this;
    }
}
