src/Entity/ExceptionLog.php line 21
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use ApiPlatform\Metadata\Get;use ApiPlatform\Metadata\Post;use App\Dto\ExceptionInput;use App\Repository\ExceptionLogRepository;use App\State\ExceptionLogProcessor;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;use Symfony\Component\Validator\Constraints\Length;#[ApiResource(operations: [new Get(openapi: false),new Post(input: ExceptionInput::class, processor: ExceptionLogProcessor::class),], normalizationContext: ['groups' => ['read']])]#[ORM\Entity(repositoryClass: ExceptionLogRepository::class)]class ExceptionLog{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]#[Groups(['read', 'write'])]private ?int $id = null;#[ORM\ManyToOne]#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]private ?Update $update = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]#[Groups(['read', 'write'])]private ?\DateTimeInterface $createdAt = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $tracing = null;#[ORM\Column(length: 255, nullable: true)]#[Length(max: 255)]#[Groups(['read', 'write'])]private ?string $errorName = null;#[ORM\Column(length: 128, nullable: true)]#[Groups(['read', 'write'])]private ?string $helpName = null;public function getId(): ?int{return $this->id;}public function getUpdate(): ?Update{return $this->update;}public function setUpdate(?Update $update): self{$this->update = $update;return $this;}public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}public function setCreatedAt(\DateTimeInterface $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getTracing(): ?string{return $this->tracing;}public function setTracing(?string $tracing): self{$this->tracing = $tracing;return $this;}public function getErrorName(): ?string{return $this->errorName;}public function setErrorName(?string $errorName): self{$this->errorName = $errorName;return $this;}public function getHelpName(): ?string{return $this->helpName;}public function setHelpName(?string $helpName): self{$this->helpName = $helpName;return $this;}}