1 | <?php |
||
16 | class BadgeUnlocker implements BadgeUnlockerInterface |
||
17 | { |
||
18 | /** @var BadgeCompletionFactory */ |
||
19 | private $badgeCompletionFactory; |
||
20 | |||
21 | /** @var BadgeCompletionRepositoryInterface */ |
||
22 | private $badgeCompletionRepository; |
||
23 | |||
24 | /** @var SaverInterface */ |
||
25 | private $badgeCompletionSaver; |
||
26 | |||
27 | /** |
||
28 | * @param BadgeCompletionFactory $badgeCompletionFactory |
||
29 | * @param BadgeCompletionRepositoryInterface $badgeCompletionRepository |
||
30 | * @param SaverInterface $badgeCompletionSaver |
||
31 | */ |
||
32 | public function __construct( |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function unlockBadge(UserInterface $user, BadgeInterface $badge) |
||
52 | } |
||
53 |