<?php

namespace CfcalSasieSDK\Entity;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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