<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetProductsMaxTransactionCommission-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetProductsMaxTransactionCommission-Response
 * @subpackage Structs
 */
class GetProductsMaxTransactionCommission_Response extends ExtensibleDataContract
{
    /**
     * The PerEntityMaxTransactionCommission
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfEntityIdentityProductMaxTransactionCommissiono0TUsTQ2
     */
    public $PerEntityMaxTransactionCommission;
    /**
     * Constructor method for GetProductsMaxTransactionCommission-Response
     * @uses GetProductsMaxTransactionCommission_Response::setPerEntityMaxTransactionCommission()
     * @param \patest\ArrayType\ArrayOfKeyValueOfEntityIdentityProductMaxTransactionCommissiono0TUsTQ2 $perEntityMaxTransactionCommission
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfEntityIdentityProductMaxTransactionCommissiono0TUsTQ2 $perEntityMaxTransactionCommission = null)
    {
        $this
            ->setPerEntityMaxTransactionCommission($perEntityMaxTransactionCommission);
    }
    /**
     * Get PerEntityMaxTransactionCommission 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\ArrayType\ArrayOfKeyValueOfEntityIdentityProductMaxTransactionCommissiono0TUsTQ2|null
     */
    public function getPerEntityMaxTransactionCommission()
    {
        return isset($this->PerEntityMaxTransactionCommission) ? $this->PerEntityMaxTransactionCommission : null;
    }
    /**
     * Set PerEntityMaxTransactionCommission 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\ArrayType\ArrayOfKeyValueOfEntityIdentityProductMaxTransactionCommissiono0TUsTQ2 $perEntityMaxTransactionCommission
     * @return \patest\StructType\GetProductsMaxTransactionCommission_Response
     */
    public function setPerEntityMaxTransactionCommission(\patest\ArrayType\ArrayOfKeyValueOfEntityIdentityProductMaxTransactionCommissiono0TUsTQ2 $perEntityMaxTransactionCommission = null)
    {
        if (is_null($perEntityMaxTransactionCommission) || (is_array($perEntityMaxTransactionCommission) && empty($perEntityMaxTransactionCommission))) {
            unset($this->PerEntityMaxTransactionCommission);
        } else {
            $this->PerEntityMaxTransactionCommission = $perEntityMaxTransactionCommission;
        }
        return $this;
    }
}
