src/Entity/OperationSearch.php line 9

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