src/Entity/WeekGoal.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\WeekGoalRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\UX\Turbo\Attribute\Broadcast;
  7. #[ORM\Entity(repositoryClassWeekGoalRepository::class)]
  8. #[ApiResource]
  9. #[Broadcast]
  10. class WeekGoal
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column]
  17.     private ?float $monday null;
  18.     #[ORM\Column]
  19.     private ?float $tuesday null;
  20.     #[ORM\Column]
  21.     private ?float $wednesday null;
  22.     #[ORM\Column]
  23.     private ?float $thursday null;
  24.     #[ORM\Column]
  25.     private ?float $friday null;
  26.     #[ORM\Column]
  27.     private ?float $saturday null;
  28.     #[ORM\Column]
  29.     private ?float $sunday null;
  30.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  31.     #[ORM\JoinColumn(nullablefalse)]
  32.     private ?Attendee $attendee null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getMonday(): ?float
  38.     {
  39.         return $this->monday;
  40.     }
  41.     public function setMonday(float $monday): self
  42.     {
  43.         $this->monday $monday;
  44.         return $this;
  45.     }
  46.     public function getTuesday(): ?float
  47.     {
  48.         return $this->tuesday;
  49.     }
  50.     public function setTuesday(float $tuesday): self
  51.     {
  52.         $this->tuesday $tuesday;
  53.         return $this;
  54.     }
  55.     public function getWednesday(): ?float
  56.     {
  57.         return $this->wednesday;
  58.     }
  59.     public function setWednesday(float $wednesday): self
  60.     {
  61.         $this->wednesday $wednesday;
  62.         return $this;
  63.     }
  64.     public function getThursday(): ?float
  65.     {
  66.         return $this->thursday;
  67.     }
  68.     public function setThursday(float $thursday): self
  69.     {
  70.         $this->thursday $thursday;
  71.         return $this;
  72.     }
  73.     public function getFriday(): ?float
  74.     {
  75.         return $this->friday;
  76.     }
  77.     public function setFriday(float $friday): self
  78.     {
  79.         $this->friday $friday;
  80.         return $this;
  81.     }
  82.     public function getSaturday(): ?float
  83.     {
  84.         return $this->saturday;
  85.     }
  86.     public function setSaturday(float $saturday): self
  87.     {
  88.         $this->saturday $saturday;
  89.         return $this;
  90.     }
  91.     public function getSunday(): ?float
  92.     {
  93.         return $this->sunday;
  94.     }
  95.     public function setSunday(float $sunday): self
  96.     {
  97.         $this->sunday $sunday;
  98.         return $this;
  99.     }
  100.     public function getAttendee(): ?Attendee
  101.     {
  102.         return $this->attendee;
  103.     }
  104.     public function setAttendee(Attendee $attendee): self
  105.     {
  106.         $this->attendee $attendee;
  107.         return $this;
  108.     }
  109. }