|null $lexicon Parsed lexicon JSON document. */ public function __construct( private readonly string $nsid, private readonly DateTimeImmutable $createdAt, private readonly DateTimeImmutable $updatedAt, private readonly ?DateTimeImmutable $lastSucceededAt, private readonly ?string $uri, private readonly ?array $lexicon, ) { } public function getNsid(): string { return $this->nsid; } public function getCreatedAt(): DateTimeImmutable { return $this->createdAt; } public function getUpdatedAt(): DateTimeImmutable { return $this->updatedAt; } public function getLastSucceededAt(): ?DateTimeImmutable { return $this->lastSucceededAt; } public function getUri(): ?string { return $this->uri; } /** * @return array|null */ public function getLexicon(): ?array { return $this->lexicon; } /** * @return array */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'nsid' => $this->nsid, 'createdAt' => $this->createdAt->format(DATE_ATOM), 'updatedAt' => $this->updatedAt->format(DATE_ATOM), 'lastSucceededAt' => $this->lastSucceededAt?->format(DATE_ATOM), 'uri' => $this->uri, ]; } }