<?php

namespace CfcalSasieSDK\Entity;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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