src/Entity/RefTypeOperationTravail.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\TimestampableTrait;
  4. use App\Repository\RefTypeOperationTravailRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * @ORM\Entity(repositoryClass=RefTypeOperationTravailRepository::class)
  9.  * @Gedmo\Loggable
  10.  */
  11. class RefTypeOperationTravail
  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 $typeOperation;
  24.     use TimestampableTrait;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getTypeOperation(): ?string
  30.     {
  31.         return $this->typeOperation;
  32.     }
  33.     public function setTypeOperation(string $typeOperation): self
  34.     {
  35.         $this->typeOperation $typeOperation;
  36.         return $this;
  37.     }
  38.     
  39.     public function __toString()
  40.     {
  41.         return $this->typeOperation;
  42.     }
  43. }