src/Entity/Thinkific.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ThinkificRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ThinkificRepository::class)
  7.  */
  8. class Thinkific
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Inscrit::class, inversedBy="thinkifics")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $inscrit;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $email;
  25.     /**
  26.      * @ORM\Column(type="text")
  27.      */
  28.     private $password;
  29.     /**
  30.      * @ORM\Column(type="date", nullable=true)
  31.      */
  32.     private $startDate;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getInscrit(): ?Inscrit
  38.     {
  39.         return $this->inscrit;
  40.     }
  41.     public function setInscrit(?Inscrit $inscrit): self
  42.     {
  43.         $this->inscrit $inscrit;
  44.         return $this;
  45.     }
  46.     public function getEmail(): ?string
  47.     {
  48.         return $this->email;
  49.     }
  50.     public function setEmail(string $email): self
  51.     {
  52.         $this->email $email;
  53.         return $this;
  54.     }
  55.     public function getPassword(): ?string
  56.     {
  57.         return $this->password;
  58.     }
  59.     public function setPassword(string $password): self
  60.     {
  61.         $this->password $password;
  62.         return $this;
  63.     }
  64.     public function getStartDate(): ?\DateTimeInterface
  65.     {
  66.         return $this->startDate;
  67.     }
  68.     public function setStartDate(?\DateTimeInterface $startDate): self
  69.     {
  70.         $this->startDate $startDate;
  71.         return $this;
  72.     }
  73. }