<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.PrintableItem.BankTransferPaymentItem StructType
 * @subpackage Structs
 */
class Printing_PrintableItem_BankTransferPaymentItem extends Printing_PrintableItem_PaymentItemBase
{
    /**
     * The BankTransferPayment
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Payment_Printing_BankTransferPayment
     */
    public $BankTransferPayment;
    /**
     * Constructor method for Printing.PrintableItem.BankTransferPaymentItem
     * @uses Printing_PrintableItem_BankTransferPaymentItem::setBankTransferPayment()
     * @param \patest\StructType\Payment_Printing_BankTransferPayment $bankTransferPayment
     */
    public function __construct(\patest\StructType\Payment_Printing_BankTransferPayment $bankTransferPayment = null)
    {
        $this
            ->setBankTransferPayment($bankTransferPayment);
    }
    /**
     * Get BankTransferPayment 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\Payment_Printing_BankTransferPayment|null
     */
    public function getBankTransferPayment()
    {
        return isset($this->BankTransferPayment) ? $this->BankTransferPayment : null;
    }
    /**
     * Set BankTransferPayment 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\Payment_Printing_BankTransferPayment $bankTransferPayment
     * @return \patest\StructType\Printing_PrintableItem_BankTransferPaymentItem
     */
    public function setBankTransferPayment(\patest\StructType\Payment_Printing_BankTransferPayment $bankTransferPayment = null)
    {
        if (is_null($bankTransferPayment) || (is_array($bankTransferPayment) && empty($bankTransferPayment))) {
            unset($this->BankTransferPayment);
        } else {
            $this->BankTransferPayment = $bankTransferPayment;
        }
        return $this;
    }
}
