<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.AuxiliaryDataItem.CardLoadingItemsData StructType
 * @subpackage Structs
 */
class Printing_AuxiliaryDataItem_CardLoadingItemsData extends Printing_AuxiliaryDataItem_Base
{
    /**
     * The AllCardLoadingItems
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfPrinting_PrintableItem_CardLoadingItem
     */
    public $AllCardLoadingItems;
    /**
     * Constructor method for Printing.AuxiliaryDataItem.CardLoadingItemsData
     * @uses Printing_AuxiliaryDataItem_CardLoadingItemsData::setAllCardLoadingItems()
     * @param \patest\StructType\RecordSetOfPrinting_PrintableItem_CardLoadingItem $allCardLoadingItems
     */
    public function __construct(\patest\StructType\RecordSetOfPrinting_PrintableItem_CardLoadingItem $allCardLoadingItems = null)
    {
        $this
            ->setAllCardLoadingItems($allCardLoadingItems);
    }
    /**
     * Get AllCardLoadingItems 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\RecordSetOfPrinting_PrintableItem_CardLoadingItem|null
     */
    public function getAllCardLoadingItems()
    {
        return isset($this->AllCardLoadingItems) ? $this->AllCardLoadingItems : null;
    }
    /**
     * Set AllCardLoadingItems 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\RecordSetOfPrinting_PrintableItem_CardLoadingItem $allCardLoadingItems
     * @return \patest\StructType\Printing_AuxiliaryDataItem_CardLoadingItemsData
     */
    public function setAllCardLoadingItems(\patest\StructType\RecordSetOfPrinting_PrintableItem_CardLoadingItem $allCardLoadingItems = null)
    {
        if (is_null($allCardLoadingItems) || (is_array($allCardLoadingItems) && empty($allCardLoadingItems))) {
            unset($this->AllCardLoadingItems);
        } else {
            $this->AllCardLoadingItems = $allCardLoadingItems;
        }
        return $this;
    }
}
