RepairAdvanceEvent.php 613 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 RepairAdvanceEvent extends Event {
  10. private int $increment;
  11. private string $description;
  12. public function __construct(
  13. int $increment,
  14. string $description,
  15. ) {
  16. $this->increment = $increment;
  17. $this->description = $description;
  18. }
  19. public function getIncrement(): int {
  20. return $this->increment;
  21. }
  22. public function getDescription(): string {
  23. return $this->description;
  24. }
  25. }