RepairStartEvent.php 562 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OC\Repair\Events;
  8. use OCP\EventDispatcher\Event;
  9. class RepairStartEvent extends Event {
  10. private int $max;
  11. private string $current;
  12. public function __construct(
  13. int $max,
  14. string $current
  15. ) {
  16. $this->max = $max;
  17. $this->current = $current;
  18. }
  19. public function getMaxStep(): int {
  20. return $this->max;
  21. }
  22. public function getCurrentStepName(): string {
  23. return $this->current;
  24. }
  25. }