<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: \App\Repository\DeviceRepository::class)]
class Device
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private int $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $registration_id= null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $kind= null;
#[ORM\Column(type: 'datetime', nullable: true)]
private mixed $created_at;
#[ORM\Column(type: 'datetime', nullable: true)]
private mixed $updated_at;
public function getId(): ?int
{
return $this->id;
}
public function getRegistrationId(): ?string
{
return $this->registration_id;
}
public function setRegistrationId(?string $registration_id): self
{
$this->registration_id = $registration_id;
return $this;
}
public function getKind(): ?string
{
return $this->kind;
}
public function setKind(?string $kind): self
{
$this->kind = $kind;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
public function setCreatedAt(?\DateTimeInterface $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updated_at;
}
public function setUpdatedAt(\DateTimeInterface $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
}