<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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