src/Entity/Admin/ApiPreloadBooking.php line 12

  1. <?php
  2. namespace App\Entity\Admin;
  3. use App\Repository\Admin\ApiPreloadBookingRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\ORM\Mapping\Table;
  7. #[ORM\Entity(repositoryClassApiPreloadBookingRepository::class)]
  8. #[Table(name'ApiPreloadBooking')]
  9. class ApiPreloadBooking
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'apiPreloadBookings')]
  16.     private ?ApiConnection $connection null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private array $json = [];
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  20.     private ?\DateTimeInterface $updated null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getConnection(): ?ApiConnection
  26.     {
  27.         return $this->connection;
  28.     }
  29.     public function setConnection(?ApiConnection $connection): self
  30.     {
  31.         $this->connection $connection;
  32.         return $this;
  33.     }
  34.     public function getJson(): array
  35.     {
  36.         return $this->json;
  37.     }
  38.     public function setJson(?array $json): self
  39.     {
  40.         $this->json $json;
  41.         return $this;
  42.     }
  43.     public function getUpdated(): ?\DateTimeInterface
  44.     {
  45.         return $this->updated;
  46.     }
  47.     public function setUpdated(\DateTimeInterface $updated): self
  48.     {
  49.         $this->updated $updated;
  50.         return $this;
  51.     }
  52. }