<?php

namespace CfcalSasieSDK\Entity;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SectionEmpruntsEtDettes Entity
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:SectionEmpruntsEtDettes
 * @subpackage Structs
 */
class SectionEmpruntsEtDettes extends ObjetPublicSaisieEnLigneBase
{
    /**
     * The Emprunts
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \CfcalSasieSDK\Entity\Emprunts
     */
    public $Emprunts;
    /**
     * The Dettes
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \CfcalSasieSDK\Entity\Dettes
     */
    public $Dettes;
    /**
     * Constructor method for SectionEmpruntsEtDettes
     * @uses SectionEmpruntsEtDettes::setEmprunts()
     * @uses SectionEmpruntsEtDettes::setDettes()
     * @param \CfcalSasieSDK\Entity\Emprunts $emprunts
     * @param \CfcalSasieSDK\Entity\Dettes $dettes
     */
    public function __construct(\CfcalSasieSDK\Entity\Emprunts $emprunts = null, \CfcalSasieSDK\Entity\Dettes $dettes = null)
    {
        $this
            ->setEmprunts($emprunts)
            ->setDettes($dettes);
    }
    /**
     * Get Emprunts 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 \CfcalSasieSDK\Entity\Emprunts|null
     */
    public function getEmprunts()
    {
        return isset($this->Emprunts) ? $this->Emprunts : null;
    }
    /**
     * Set Emprunts 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 \CfcalSasieSDK\Entity\Emprunts $emprunts
     * @return \CfcalSasieSDK\Entity\SectionEmpruntsEtDettes
     */
    public function setEmprunts(\CfcalSasieSDK\Entity\Emprunts $emprunts = null)
    {
        if (is_null($emprunts) || (is_array($emprunts) && empty($emprunts))) {
            unset($this->Emprunts);
        } else {
            $this->Emprunts = $emprunts;
        }
        return $this;
    }
    /**
     * Get Dettes 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 \CfcalSasieSDK\Entity\Dettes|null
     */
    public function getDettes()
    {
        return isset($this->Dettes) ? $this->Dettes : null;
    }
    /**
     * Set Dettes 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 \CfcalSasieSDK\Entity\Dettes $dettes
     * @return \CfcalSasieSDK\Entity\SectionEmpruntsEtDettes
     */
    public function setDettes(\CfcalSasieSDK\Entity\Dettes $dettes = null)
    {
        if (is_null($dettes) || (is_array($dettes) && empty($dettes))) {
            unset($this->Dettes);
        } else {
            $this->Dettes = $dettes;
        }
        return $this;
    }
}
