src/Entity/CourseAvailability.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CourseAvailabilityRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCourseAvailabilityRepository::class)]
  6. class CourseAvailability
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255nullabletrue)]
  13.     private $begin;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $end;
  16.     #[ORM\Column(type'float'nullabletrue)]
  17.     private $price;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $startDate;
  20.     #[ORM\Column(type'integer'nullabletrue)]
  21.     private $duration;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $recurrence;
  24.     #[ORM\ManyToOne(targetEntityCourse::class, inversedBy'availabilities')]
  25.     private $course;
  26.     #[ORM\Column(type'string'nullabletrue)]
  27.     private $dayPosition;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $formattedDate null;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getBegin(): ?string
  35.     {
  36.         return $this->begin;
  37.     }
  38.     public function setBegin(string $begin): self
  39.     {
  40.         $this->begin $begin;
  41.         return $this;
  42.     }
  43.     public function getEnd(): ?string
  44.     {
  45.         return $this->end;
  46.     }
  47.     public function setEnd(string $end): self
  48.     {
  49.         $this->end $end;
  50.         return $this;
  51.     }
  52.     public function getPrice(): ?float
  53.     {
  54.         return $this->price;
  55.     }
  56.     public function setPrice($price): self
  57.     {
  58.         $this->price $price;
  59.         return $this;
  60.     }
  61.     public function getStartDate(): ?string
  62.     {
  63.         return $this->startDate;
  64.     }
  65.     public function setStartDate(?string $startDate): self
  66.     {
  67.         $this->startDate $startDate;
  68.         return $this;
  69.     }
  70.     public function getDuration(): ?int
  71.     {
  72.         return $this->duration;
  73.     }
  74.     public function setDuration(?int $duration): self
  75.     {
  76.         $this->duration $duration;
  77.         return $this;
  78.     }
  79.     public function getRecurrence(): ?string
  80.     {
  81.         return $this->recurrence;
  82.     }
  83.     public function setRecurrence(?string $recurrence): self
  84.     {
  85.         $this->recurrence $recurrence;
  86.         return $this;
  87.     }
  88.     public function getCourse(): ?Course
  89.     {
  90.         return $this->course;
  91.     }
  92.     public function setCourse(?Course $course): self
  93.     {
  94.         $this->course $course;
  95.         return $this;
  96.     }
  97.     public function getDayPosition(): ?string
  98.     {
  99.         return $this->dayPosition;
  100.     }
  101.     public function setDayPosition(?string $dayPosition): self
  102.     {
  103.         $this->dayPosition $dayPosition;
  104.         return $this;
  105.     }
  106.     public function getFormattedDate(): ?string
  107.     {
  108.         return $this->formattedDate;
  109.     }
  110.     public function setFormattedDate(?string $formattedDate): static
  111.     {
  112.         $this->formattedDate $formattedDate;
  113.         return $this;
  114.     }
  115. }