src/Entity/Admin/ApiPreloadBooking.php line 12
<?php
namespace App\Entity\Admin;
use App\Repository\Admin\ApiPreloadBookingRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\Table;
#[ORM\Entity(repositoryClass: ApiPreloadBookingRepository::class)]
#[Table(name: 'ApiPreloadBooking')]
class ApiPreloadBooking
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'apiPreloadBookings')]
private ?ApiConnection $connection = null;
#[ORM\Column(nullable: true)]
private array $json = [];
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $updated = null;
public function getId(): ?int
{
return $this->id;
}
public function getConnection(): ?ApiConnection
{
return $this->connection;
}
public function setConnection(?ApiConnection $connection): self
{
$this->connection = $connection;
return $this;
}
public function getJson(): array
{
return $this->json;
}
public function setJson(?array $json): self
{
$this->json = $json;
return $this;
}
public function getUpdated(): ?\DateTimeInterface
{
return $this->updated;
}
public function setUpdated(\DateTimeInterface $updated): self
{
$this->updated = $updated;
return $this;
}
}