src/Entity/DashboardSearch.php line 9

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