$doc Parsed DID document. */ public function __construct( private readonly string $did, private readonly array $doc, private readonly DateTimeImmutable $updatedAt, ) { } public function getDid(): string { return $this->did; } /** * @return array */ public function getDoc(): array { return $this->doc; } public function getUpdatedAt(): DateTimeImmutable { return $this->updatedAt; } /** * @return array */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'did' => $this->did, 'doc' => $this->doc, 'updatedAt' => $this->updatedAt->format(DATE_ATOM), ]; } }