|
@@ -0,0 +1,96 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace App\Entity;
|
|
|
+
|
|
|
+use App\Repository\CounterRepository;
|
|
|
+use Doctrine\DBAL\Types\Types;
|
|
|
+use Doctrine\ORM\Mapping as ORM;
|
|
|
+
|
|
|
+
|
|
|
+class Counter
|
|
|
+{
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ private ?int $id = null;
|
|
|
+
|
|
|
+
|
|
|
+ private ?\DateTimeImmutable $startTime = null;
|
|
|
+
|
|
|
+
|
|
|
+ private ?\DateTimeImmutable $endTime = null;
|
|
|
+
|
|
|
+
|
|
|
+ private ?string $name = null;
|
|
|
+
|
|
|
+
|
|
|
+ private ?string $state = null;
|
|
|
+
|
|
|
+
|
|
|
+ private ?string $timeToLive = null;
|
|
|
+
|
|
|
+ public function getId(): ?int
|
|
|
+ {
|
|
|
+ return $this->id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getStartTime(): ?\DateTimeImmutable
|
|
|
+ {
|
|
|
+ return $this->startTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setStartTime(\DateTimeImmutable $startTime): static
|
|
|
+ {
|
|
|
+ $this->startTime = $startTime;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getEndTime(): ?\DateTimeImmutable
|
|
|
+ {
|
|
|
+ return $this->endTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setEndTime(\DateTimeImmutable $endTime): static
|
|
|
+ {
|
|
|
+ $this->endTime = $endTime;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getName(): ?string
|
|
|
+ {
|
|
|
+ return $this->name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setName(?string $name): static
|
|
|
+ {
|
|
|
+ $this->name = $name;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getState(): ?string
|
|
|
+ {
|
|
|
+ return $this->state;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setState(string $state): static
|
|
|
+ {
|
|
|
+ $this->state = $state;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getTimeTolive(): ?string
|
|
|
+ {
|
|
|
+ return $this->timeToLive;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setTimeTolive(string $timeTolive): static
|
|
|
+ {
|
|
|
+ $this->timeToLive = $timeTolive;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+}
|