<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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