<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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