src/Entity/RootEntity.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LandBaseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. #[ORM\MappedSuperclass()]
  8. class RootEntity
  9. {
  10.   #[Gedmo\Timestampable(on'create')]
  11.   #[ORM\Column(type'datetime_immutable')]
  12.   #[Groups(['api_index''api_balance'])]
  13.   private $createdAt;
  14.   #[Gedmo\Timestampable(on'update')]
  15.   #[ORM\Column(type'datetime_immutable')]
  16.   private $updatedAt;
  17.   #[ORM\Column(name'deletedAt'type'datetime_immutable'nullabletrue)]
  18.   private $deletedAt;
  19.   #[ORM\Column(type'json'nullabletrue)]
  20.   private $other = [];
  21.   public function getCreatedAt(): ?\DateTimeImmutable
  22.   {
  23.     return $this->createdAt;
  24.   }
  25.   public function setCreatedAt(\DateTimeImmutable $createdAt): self
  26.   {
  27.     $this->createdAt $createdAt;
  28.     return $this;
  29.   }
  30.   public function getUpdatedAt(): ?\DateTimeImmutable
  31.   {
  32.     return $this->updatedAt;
  33.   }
  34.   public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
  35.   {
  36.     $this->updatedAt $updatedAt;
  37.     return $this;
  38.   }
  39.   public function getDeletedAt(): ?\DateTimeImmutable
  40.   {
  41.     return $this->deletedAt;
  42.   }
  43.   public function setDeletedAt(?\DateTimeImmutable $deletedAt): self
  44.   {
  45.     $this->deletedAt $deletedAt;
  46.     return $this;
  47.   }
  48.   public function getOther(): array
  49.   {
  50.     return $this->other;
  51.   }
  52.   public function setOther(?array $other): self
  53.   {
  54.     $this->other $other;
  55.     return $this;
  56.   }
  57. }