ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
UserFinishedManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
28{
30
31 public function __construct(
32 protected InternalDataService $data,
34 protected InternalDomainService $domain
35 ) {
36 $this->repo = $repo->userFinished();
37 }
38
39 public function setFinished(int $tour_id, int $user_id): void
40 {
41 $this->repo->setFinished($tour_id, $user_id);
42 }
43
44 public function hasFinished(int $tour_id, int $user_id): bool
45 {
46 return $this->repo->hasFinished($tour_id, $user_id);
47 }
48
49 public function resetTour(int $tour_id): void
50 {
51 $this->repo->resetTour($tour_id);
52 }
53}
__construct(protected InternalDataService $data, InternalRepoService $repo, protected InternalDomainService $domain)