<?php
namespace App\Entity;
use App\Repository\CourseAvailabilityRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CourseAvailabilityRepository::class)]
class CourseAvailability
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $begin;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $end;
#[ORM\Column(type: 'float', nullable: true)]
private $price;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $startDate;
#[ORM\Column(type: 'integer', nullable: true)]
private $duration;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $recurrence;
#[ORM\ManyToOne(targetEntity: Course::class, inversedBy: 'availabilities')]
private $course;
#[ORM\Column(type: 'string', nullable: true)]
private $dayPosition;
#[ORM\Column(length: 255, nullable: true)]
private ?string $formattedDate = null;
public function getId(): ?int
{
return $this->id;
}
public function getBegin(): ?string
{
return $this->begin;
}
public function setBegin(string $begin): self
{
$this->begin = $begin;
return $this;
}
public function getEnd(): ?string
{
return $this->end;
}
public function setEnd(string $end): self
{
$this->end = $end;
return $this;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice($price): self
{
$this->price = $price;
return $this;
}
public function getStartDate(): ?string
{
return $this->startDate;
}
public function setStartDate(?string $startDate): self
{
$this->startDate = $startDate;
return $this;
}
public function getDuration(): ?int
{
return $this->duration;
}
public function setDuration(?int $duration): self
{
$this->duration = $duration;
return $this;
}
public function getRecurrence(): ?string
{
return $this->recurrence;
}
public function setRecurrence(?string $recurrence): self
{
$this->recurrence = $recurrence;
return $this;
}
public function getCourse(): ?Course
{
return $this->course;
}
public function setCourse(?Course $course): self
{
$this->course = $course;
return $this;
}
public function getDayPosition(): ?string
{
return $this->dayPosition;
}
public function setDayPosition(?string $dayPosition): self
{
$this->dayPosition = $dayPosition;
return $this;
}
public function getFormattedDate(): ?string
{
return $this->formattedDate;
}
public function setFormattedDate(?string $formattedDate): static
{
$this->formattedDate = $formattedDate;
return $this;
}
}