src/Entity/RefDureeOperationTravail.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\TimestampableTrait;
  4. use App\Repository\RefDureeOperationTravailRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * @ORM\Entity(repositoryClass=RefDureeOperationTravailRepository::class)
  9.  * @Gedmo\Loggable
  10.  */
  11. class RefDureeOperationTravail
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      * @Gedmo\Versioned
  22.      */
  23.     private $dureeOperation;
  24.     /**
  25.      * @ORM\Column(type="float")
  26.      * @Gedmo\Versioned
  27.      */
  28.     private $valeurJour 0;
  29.     use TimestampableTrait;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getDureeOperation(): ?string
  35.     {
  36.         return $this->dureeOperation;
  37.     }
  38.     public function setDureeOperation(string $dureeOperation): self
  39.     {
  40.         $this->dureeOperation $dureeOperation;
  41.         return $this;
  42.     }
  43.     
  44.     public function __toString()
  45.     {
  46.         return $this->dureeOperation;
  47.     }
  48.     public function getValeurJour(): ?float
  49.     {
  50.         return $this->valeurJour;
  51.     }
  52.     public function setValeurJour(float $valeurJour): self
  53.     {
  54.         $this->valeurJour $valeurJour;
  55.         return $this;
  56.     }
  57. }