<?php

namespace CfcalSasieSDK\Entity;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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