<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for getReconciliationListResponse StructType
 * @subpackage Structs
 */
class GetReconciliationListResponse extends AbstractStructBase
{
    /**
     * The getReconciliationListResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var DocumentType
     */
    public $getReconciliationListResult;
    /**
     * Constructor method for getReconciliationListResponse
     * @uses GetReconciliationListResponse::setGetReconciliationListResult()
     * @param DocumentType $getReconciliationListResult
     */
    public function __construct(DocumentType $getReconciliationListResult = null)
    {
        $this
            ->setGetReconciliationListResult($getReconciliationListResult);
    }
    /**
     * Get getReconciliationListResult 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 DocumentType|null
     */
    public function getGetReconciliationListResult()
    {
        return isset($this->getReconciliationListResult) ? $this->getReconciliationListResult : null;
    }
    /**
     * Set getReconciliationListResult 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 DocumentType $getReconciliationListResult
     * @return GetReconciliationListResponse
     */
    public function setGetReconciliationListResult(DocumentType $getReconciliationListResult = null)
    {
        if (is_null($getReconciliationListResult) || (is_array($getReconciliationListResult) && empty($getReconciliationListResult))) {
            unset($this->getReconciliationListResult);
        } else {
            $this->getReconciliationListResult = $getReconciliationListResult;
        }
        return $this;
    }
}
