<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Sales.Printing.BasketTotals StructType
 * @subpackage Structs
 */
class Sales_Printing_BasketTotals extends Sales_BasketTotals
{
    /**
     * The Commissions
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfSales_Printing_PriceModifier
     */
    public $Commissions;
    /**
     * The Taxes
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\RecordSetOfSales_Printing_PriceModifier
     */
    public $Taxes;
    /**
     * Constructor method for Sales.Printing.BasketTotals
     * @uses Sales_Printing_BasketTotals::setCommissions()
     * @uses Sales_Printing_BasketTotals::setTaxes()
     * @param \patest\StructType\RecordSetOfSales_Printing_PriceModifier $commissions
     * @param \patest\StructType\RecordSetOfSales_Printing_PriceModifier $taxes
     */
    public function __construct(\patest\StructType\RecordSetOfSales_Printing_PriceModifier $commissions = null, \patest\StructType\RecordSetOfSales_Printing_PriceModifier $taxes = null)
    {
        $this
            ->setCommissions($commissions)
            ->setTaxes($taxes);
    }
    /**
     * Get Commissions 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\RecordSetOfSales_Printing_PriceModifier|null
     */
    public function getCommissions()
    {
        return isset($this->Commissions) ? $this->Commissions : null;
    }
    /**
     * Set Commissions 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\RecordSetOfSales_Printing_PriceModifier $commissions
     * @return \patest\StructType\Sales_Printing_BasketTotals
     */
    public function setCommissions(\patest\StructType\RecordSetOfSales_Printing_PriceModifier $commissions = null)
    {
        if (is_null($commissions) || (is_array($commissions) && empty($commissions))) {
            unset($this->Commissions);
        } else {
            $this->Commissions = $commissions;
        }
        return $this;
    }
    /**
     * Get Taxes 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\RecordSetOfSales_Printing_PriceModifier|null
     */
    public function getTaxes()
    {
        return isset($this->Taxes) ? $this->Taxes : null;
    }
    /**
     * Set Taxes 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\RecordSetOfSales_Printing_PriceModifier $taxes
     * @return \patest\StructType\Sales_Printing_BasketTotals
     */
    public function setTaxes(\patest\StructType\RecordSetOfSales_Printing_PriceModifier $taxes = null)
    {
        if (is_null($taxes) || (is_array($taxes) && empty($taxes))) {
            unset($this->Taxes);
        } else {
            $this->Taxes = $taxes;
        }
        return $this;
    }
}
