123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- namespace App\Entity;
- use App\Repository\PeriodRepository;
- use Doctrine\ORM\Mapping as ORM;
- #[ORM\Entity(repositoryClass: PeriodRepository::class)]
- class Period
- {
- #[ORM\Id]
- #[ORM\GeneratedValue]
- #[ORM\Column]
- private ?int $id = null;
- #[ORM\Column]
- private ?\DateTime $startOn = null;
- #[ORM\Column]
- private ?\DateTime $endOn = null;
- #[ORM\ManyToOne(inversedBy: 'periods')]
- #[ORM\JoinColumn(nullable: false)]
- private ?Event $event = null;
- #[ORM\Column(nullable: true)]
- private ?bool $locked = null;
- public function getId(): ?int
- {
- return $this->id;
- }
- public function getStartOn(): ?\DateTime
- {
- return $this->startOn;
- }
- public function setStartOn(\DateTime $startOn): static
- {
- $this->startOn = $startOn;
- return $this;
- }
- public function getEndOn(): ?\DateTime
- {
- return $this->endOn;
- }
- public function setEndOn(\DateTime $endOn): static
- {
- $this->endOn = $endOn;
- return $this;
- }
- public function getEvent(): ?Event
- {
- return $this->event;
- }
- public function setEvent(?Event $event): static
- {
- $this->event = $event;
- return $this;
- }
- public function isLocked(): ?bool
- {
- return $this->locked;
- }
- public function setLocked(?bool $locked): static
- {
- $this->locked = $locked;
- return $this;
- }
- }
|