src/Entity/Device.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity(repositoryClass\App\Repository\DeviceRepository::class)]
  5. class Device
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\GeneratedValue]
  9.     #[ORM\Column(type'integer')]
  10.     private int $id;
  11.     #[ORM\Column(type'string'length255nullabletrue)]
  12.     private ?string $registration_idnull;
  13.     #[ORM\Column(type'string'length255nullabletrue)]
  14.     private ?string $kindnull;
  15.     #[ORM\Column(type'datetime'nullabletrue)]
  16.     private mixed $created_at;
  17.     #[ORM\Column(type'datetime'nullabletrue)]
  18.     private mixed $updated_at;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getRegistrationId(): ?string
  24.     {
  25.         return $this->registration_id;
  26.     }
  27.     public function setRegistrationId(?string $registration_id): self
  28.     {
  29.         $this->registration_id $registration_id;
  30.         return $this;
  31.     }
  32.     public function getKind(): ?string
  33.     {
  34.         return $this->kind;
  35.     }
  36.     public function setKind(?string $kind): self
  37.     {
  38.         $this->kind $kind;
  39.         return $this;
  40.     }
  41.     public function getCreatedAt(): ?\DateTimeInterface
  42.     {
  43.         return $this->created_at;
  44.     }
  45.     public function setCreatedAt(?\DateTimeInterface $created_at): self
  46.     {
  47.         $this->created_at $created_at;
  48.         return $this;
  49.     }
  50.     public function getUpdatedAt(): ?\DateTimeInterface
  51.     {
  52.         return $this->updated_at;
  53.     }
  54.     public function setUpdatedAt(\DateTimeInterface $updated_at): self
  55.     {
  56.         $this->updated_at $updated_at;
  57.         return $this;
  58.     }
  59. }