*/ private array $uses; /** * @param list $uses */ public function __construct( private readonly string $code, private readonly int $available, private readonly bool $disabled, private readonly string $forAccount, private readonly string $createdBy, private readonly string $createdAt, array $uses, ) { $this->uses = $uses; } /** * @return array */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'code' => $this->code, 'available' => $this->available, 'disabled' => $this->disabled, 'forAccount' => $this->forAccount, 'createdBy' => $this->createdBy, 'createdAt' => $this->createdAt, 'uses' => $this->uses, ]; } }