<?php
namespace App\Entity;
use App\Repository\DeviceRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DeviceRepository::class)]
class Device
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $gym = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $lastHeartBeat = null;
public function getId(): ?int
{
return $this->id;
}
public function getGym(): ?string
{
return $this->gym;
}
public function setGym(string $gym): static
{
$this->gym = $gym;
return $this;
}
public function getLastHeartBeat(): ?\DateTimeInterface
{
return $this->lastHeartBeat;
}
public function setLastHeartBeat(?\DateTimeInterface $lastHeartBeat): static
{
$this->lastHeartBeat = $lastHeartBeat;
return $this;
}
}