src/Entity/OperationFermSearch.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. /**
  4.  * OperationFermSearch
  5.  * 
  6.  */
  7. class OperationFermSearch
  8. {
  9.     /**
  10.      * @var \RefOperations
  11.      */
  12.     public $typeOperations;
  13.     /**
  14.      * @var \TblParcelle
  15.      */
  16.     public $parcelle;
  17.     /**
  18.      * @var \TblPersonnel
  19.      */
  20.     public $personnel;
  21.      /**
  22.      * @var \RefMaterials
  23.      */
  24.     public $materials;
  25.       /**
  26.      * @var \RefStatut
  27.      */
  28.     public $statut;   
  29.     /**
  30.     * @var \Datetype
  31.     */
  32.     public $dateDebut;
  33.     /**
  34.       * @var \Datetype
  35.       */
  36.     public $dateFin;
  37.    function isVide() : bool {
  38.     if( $this->typeOperations or $this->parcelle  or $this->personnel  or $this->materials or $this->statut or $this->dateDebut or $this->dateFin){
  39.       return true;
  40.     }
  41.     return false;
  42.   }
  43.     
  44. }