code; } public function getAvailableUses(): int { return $this->availableUses; } public function isDisabled(): bool { return $this->disabled; } public function getForAccount(): string { return $this->forAccount; } public function getCreatedBy(): string { return $this->createdBy; } public function getCreatedAt(): DateTimeImmutable { return $this->createdAt; } /** * @return array */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'code' => $this->code, 'availableUses' => $this->availableUses, 'disabled' => $this->disabled, 'forAccount' => $this->forAccount, 'createdBy' => $this->createdBy, 'createdAt' => $this->createdAt->format(DATE_ATOM), ]; } }