<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Membership.Printing.JointMembershipPrintingExtraData
 * StructType
 * @subpackage Structs
 */
class Membership_Printing_JointMembershipPrintingExtraData extends AnyEntity
{
    /**
     * The ItemsToPrint
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfMembership_Printing_JointMembershipPrintingExtraData_Item
     */
    public $ItemsToPrint;
    /**
     * Constructor method for Membership.Printing.JointMembershipPrintingExtraData
     * @uses Membership_Printing_JointMembershipPrintingExtraData::setItemsToPrint()
     * @param \patest\StructType\RecordSetOfMembership_Printing_JointMembershipPrintingExtraData_Item $itemsToPrint
     */
    public function __construct(\patest\StructType\RecordSetOfMembership_Printing_JointMembershipPrintingExtraData_Item $itemsToPrint = null)
    {
        $this
            ->setItemsToPrint($itemsToPrint);
    }
    /**
     * Get ItemsToPrint 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_JointMembershipPrintingExtraData_Item|null
     */
    public function getItemsToPrint()
    {
        return isset($this->ItemsToPrint) ? $this->ItemsToPrint : null;
    }
    /**
     * Set ItemsToPrint 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_JointMembershipPrintingExtraData_Item $itemsToPrint
     * @return \patest\StructType\Membership_Printing_JointMembershipPrintingExtraData
     */
    public function setItemsToPrint(\patest\StructType\RecordSetOfMembership_Printing_JointMembershipPrintingExtraData_Item $itemsToPrint = null)
    {
        if (is_null($itemsToPrint) || (is_array($itemsToPrint) && empty($itemsToPrint))) {
            unset($this->ItemsToPrint);
        } else {
            $this->ItemsToPrint = $itemsToPrint;
        }
        return $this;
    }
}
