$data Opaque client-specific authorization data. */ public function __construct( private readonly string $did, private readonly string $clientId, private readonly DateTimeImmutable $createdAt, private readonly DateTimeImmutable $updatedAt, private readonly array $data, ) { } public function getDid(): string { return $this->did; } public function getClientId(): string { return $this->clientId; } public function getCreatedAt(): DateTimeImmutable { return $this->createdAt; } public function getUpdatedAt(): DateTimeImmutable { return $this->updatedAt; } /** * @return array */ public function getData(): array { return $this->data; } /** * @return array */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'did' => $this->did, 'clientId' => $this->clientId, 'createdAt' => $this->createdAt->format(DATE_ATOM), 'updatedAt' => $this->updatedAt->format(DATE_ATOM), ]; } }