src/Entity/Gos/Ewebinar.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Repository\EwebinarRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=EwebinarRepository::class)
  7.  * @ORM\HasLifecycleCallbacks
  8.  */
  9. class Ewebinar
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=User::class)
  19.      */
  20.     private $user;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $joinLink;
  25.     /**
  26.      * @ORM\Column(type="string", length=255)
  27.      */
  28.     private $name;
  29.     /**
  30.      * @ORM\Column(type="string", length=255)
  31.      */
  32.     private $sessionTime;
  33.     /**
  34.      * @ORM\Column(type="text")
  35.      */
  36.     private $rawData;
  37.     /**
  38.      * @ORM\Column(type="datetime")
  39.      */
  40.     private $createdAt;
  41.     /**
  42.      * @ORM\Column(type="datetime", nullable=true)
  43.      */
  44.     private $updatedAt;
  45.     /** @ORM\PrePersist() */
  46.     public function onPrePersist()
  47.     {
  48.         $this->createdAt = new \DateTime();
  49.     }
  50.     /** @ORM\PreUpdate() */
  51.     public function onPreUpdate()
  52.     {
  53.         $this->updatedAt = new \DateTime();
  54.     }
  55.     public function getId(): ?int
  56.     {
  57.         return $this->id;
  58.     }
  59.     public function getUser(): ?User
  60.     {
  61.         return $this->user;
  62.     }
  63.     public function setUser(?User $user): self
  64.     {
  65.         $this->user $user;
  66.         return $this;
  67.     }
  68.     public function getJoinLink(): ?string
  69.     {
  70.         return $this->joinLink;
  71.     }
  72.     public function setJoinLink(string $joinLink): self
  73.     {
  74.         $this->joinLink $joinLink;
  75.         return $this;
  76.     }
  77.     public function getName(): ?string
  78.     {
  79.         return $this->name;
  80.     }
  81.     public function setName(string $name): self
  82.     {
  83.         $this->name $name;
  84.         return $this;
  85.     }
  86.     public function getSessionTime(): ?string
  87.     {
  88.         return $this->sessionTime;
  89.     }
  90.     public function setSessionTime(string $sessionTime): self
  91.     {
  92.         $this->sessionTime $sessionTime;
  93.         return $this;
  94.     }
  95.     public function getRawData(): ?string
  96.     {
  97.         return $this->rawData;
  98.     }
  99.     public function setRawData(string $rawData): self
  100.     {
  101.         $this->rawData $rawData;
  102.         return $this;
  103.     }
  104.     public function getCreatedAt()
  105.     {
  106.         return $this->createdAt;
  107.     }
  108.     public function setCreatedAt($createdAt): self
  109.     {
  110.         $this->createdAt $createdAt;
  111.         return $this;
  112.     }
  113.     public function getUpdatedAt()
  114.     {
  115.         return $this->updatedAt;
  116.     }
  117.     public function setUpdatedAt($updatedAt): self
  118.     {
  119.         $this->updatedAt $updatedAt;
  120.         return $this;
  121.     }
  122. }