<?phpnamespace App\Entity;use App\Repository\DocapostLogRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DocapostLogRepository::class)]#[ORM\HasLifecycleCallbacks]class DocapostLog{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private ?int $id = null; #[ORM\Column(type: 'string', length: 255)] private ?string $endpoint = null; #[ORM\Column(type: 'json')] private array $request = []; #[ORM\Column(type: 'integer')] private ?int $response_code = null; #[ORM\Column(type: 'json')] private array $response = []; #[ORM\Column(type: 'datetime')] private ?\DateTimeInterface $createdAt = null; #[ORM\PrePersist] public function updatedTimestamps(): void { if (null === $this->getCreatedAt()) { $this->setCreatedAt(new \DateTime()); } } public function getRequestString(): false|string { return json_encode($this->request); } public function getResponseString(): false|string { return json_encode($this->response); } public function getId(): ?int { return $this->id; } public function getEndpoint(): ?string { return $this->endpoint; } public function setEndpoint(string $endpoint): self { $this->endpoint = $endpoint; return $this; } public function getRequest(): ?array { return $this->request; } public function setRequest(array $request): self { $this->request = $request; return $this; } public function getResponseCode(): ?int { return $this->response_code; } public function setResponseCode(int $response_code): self { $this->response_code = $response_code; return $this; } public function getResponse(): ?array { return $this->response; } public function setResponse(array $response): self { $this->response = $response; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; }}