<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\LogHistoryRequestRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: LogHistoryRequestRepository::class)]
#[ApiResource]
class LogHistoryRequest
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $method = null;
#[ORM\Column(nullable: true)]
private ?array $request = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date = null;
#[ORM\Column(length: 100, nullable: true)]
private ?string $status = null;
#[ORM\Column(nullable: true)]
private ?array $responseAnswer = null;
public function getId(): ?int
{
return $this->id;
}
public function getMethod(): ?string
{
return $this->method;
}
public function setMethod(?string $method): static
{
$this->method = $method;
return $this;
}
public function getRequest(): ?array
{
return $this->request;
}
public function setRequest(?array $request): static
{
$this->request = $request;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): static
{
$this->date = $date;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): static
{
$this->status = $status;
return $this;
}
public function getResponseAnswer(): ?array
{
return $this->responseAnswer;
}
public function setResponseAnswer(?array $responseAnswer): static
{
$this->responseAnswer = $responseAnswer;
return $this;
}
}