src/Entity/ProfileQcm.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProfileQcmRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassProfileQcmRepository::class)]
  6. class ProfileQcm
  7. {
  8.     const TODO 1;
  9.     const IN_PROGRESS 2;
  10.     const DONE 3;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type'integer')]
  14.     private $id;
  15.     #[ORM\ManyToOne(targetEntityProfile::class, inversedBy'profileQcms')]
  16.     private ?\App\Entity\Profile $profile null;
  17.     #[ORM\ManyToOne(targetEntityQcm::class, inversedBy'profileQcms')]
  18.     private ?\App\Entity\Qcm $qcm null;
  19.     #[ORM\Column(type'json'nullabletrue)]
  20.     private ?array $data = [];
  21.     #[ORM\Column(type'float'nullabletrue)]
  22.     private ?float $point null;
  23.     #[ORM\Column(type'datetime'nullabletrue)]
  24.     private ?\DateTimeInterface $startAt null;
  25.     #[ORM\Column(type'datetime'nullabletrue)]
  26.     private ?\DateTimeInterface $endAt null;
  27.     #[ORM\Column(type'integer'nullabletrue)]
  28.     private ?int $remaining null;
  29.     #[ORM\Column(type'datetime'nullabletrue)]
  30.     private ?\DateTimeInterface $lastPing null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getProfile(): ?Profile
  36.     {
  37.         return $this->profile;
  38.     }
  39.     public function setProfile(?Profile $profile): self
  40.     {
  41.         $this->profile $profile;
  42.         return $this;
  43.     }
  44.     public function getQcm(): ?Qcm
  45.     {
  46.         return $this->qcm;
  47.     }
  48.     public function setQcm(?Qcm $qcm): self
  49.     {
  50.         $this->qcm $qcm;
  51.         return $this;
  52.     }
  53.     public function getData(): ?array
  54.     {
  55.         return $this->data;
  56.     }
  57.     public function setData(?array $data): self
  58.     {
  59.         $this->data $data;
  60.         return $this;
  61.     }
  62.     public function getPoint(): ?float
  63.     {
  64.         return $this->point;
  65.     }
  66.     public function setPoint(?float $point): self
  67.     {
  68.         $this->point $point;
  69.         return $this;
  70.     }
  71.     public function getStartAt(): ?\DateTimeInterface
  72.     {
  73.         return $this->startAt;
  74.     }
  75.     public function setStartAt(?\DateTimeInterface $startAt): self
  76.     {
  77.         $this->startAt $startAt;
  78.         return $this;
  79.     }
  80.     public function getEndAt(): ?\DateTimeInterface
  81.     {
  82.         return $this->endAt;
  83.     }
  84.     public function setEndAt(?\DateTimeInterface $endAt): self
  85.     {
  86.         $this->endAt $endAt;
  87.         return $this;
  88.     }
  89.     public function getRemaining(): ?int
  90.     {
  91.         return $this->remaining;
  92.     }
  93.     public function setRemaining(?int $remaining): self
  94.     {
  95.         $this->remaining $remaining;
  96.         return $this;
  97.     }
  98.     public function getLastPing(): ?\DateTimeInterface
  99.     {
  100.         return $this->lastPing;
  101.     }
  102.     public function setLastPing(\DateTimeInterface $lastPing): self
  103.     {
  104.         $this->lastPing $lastPing;
  105.         return $this;
  106.     }
  107. }