<?php

namespace CfcalSasieSDK\Entity;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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