Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class UserManager implements UserManagerInterface |
||
13 | { |
||
14 | private $courseRepository; |
||
15 | |||
16 | private $userRepository; |
||
17 | |||
18 | private $userFactory; |
||
19 | |||
20 | public function __construct(CourseRepositoryInterface $courseRepository, UserRepositoryInterface $userRepository, UserFactoryInterface $userFactory) |
||
21 | { |
||
22 | $this->courseRepository = $courseRepository; |
||
23 | $this->userRepository = $userRepository; |
||
24 | $this->userFactory = $userFactory; |
||
25 | } |
||
26 | |||
27 | public function addCourseByTitle(UserInterface $user, string $courseTitle): void |
||
32 | } |
||
33 | } |
||
34 | |||
35 | public function getOrCreateUser(string $email): UserInterface |
||
43 | } |
||
44 | } |
||
45 |