src/Entity/ContratElearning.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContratElearningRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ContratElearningRepository::class)
  7.  */
  8. class ContratElearning
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $level;
  20.     /**
  21.      * @ORM\Column(type="text", nullable=true)
  22.      */
  23.     private $signature;
  24.     /**
  25.      * @ORM\Column(type="datetime_immutable")
  26.      */
  27.     private $created_at;
  28.     /**
  29.      * @ORM\Column(type="datetime_immutable", nullable=true)
  30.      */
  31.     private $reply_at;
  32.     /**
  33.      * @ORM\Column(type="text")
  34.      */
  35.     private $token;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=Inscrit::class, inversedBy="contratElearnings")
  38.      */
  39.     private $inscrit;
  40.    
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getLevel(): ?int
  46.     {
  47.         return $this->level;
  48.     }
  49.     public function setLevel(int $level): self
  50.     {
  51.         $this->level $level;
  52.         return $this;
  53.     }
  54.     public function getSignature(): ?string
  55.     {
  56.         return $this->signature;
  57.     }
  58.     public function setSignature(?string $signature): self
  59.     {
  60.         $this->signature $signature;
  61.         return $this;
  62.     }
  63.     public function getCreatedAt(): ?\DateTimeImmutable
  64.     {
  65.         return $this->created_at;
  66.     }
  67.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  68.     {
  69.         $this->created_at $created_at;
  70.         return $this;
  71.     }
  72.     public function getReplyAt(): ?\DateTimeImmutable
  73.     {
  74.         return $this->reply_at;
  75.     }
  76.     public function setReplyAt(?\DateTimeImmutable $reply_at): self
  77.     {
  78.         $this->reply_at $reply_at;
  79.         return $this;
  80.     }
  81.     public function getToken(): ?string
  82.     {
  83.         return $this->token;
  84.     }
  85.     public function setToken(string $token): self
  86.     {
  87.         $this->token $token;
  88.         return $this;
  89.     }
  90.     public function getInscrit(): ?Inscrit
  91.     {
  92.         return $this->inscrit;
  93.     }
  94.     public function setInscrit(?Inscrit $inscrit): self
  95.     {
  96.         $this->inscrit $inscrit;
  97.         return $this;
  98.     }
  99.    
  100. }