| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function register(string $email, string $firstname, string $lastname, string $password, string $passwordConf) |
||
| 15 | { |
||
| 16 | $this->validateData($email, $firstname, $lastname, $password, $passwordConf); |
||
| 17 | $userId = Uuid::uuid4(); |
||
| 18 | $user = new User($userId, $email, $firstname, $lastname); |
||
| 19 | $user->create(Hash::make($password)); |
||
| 20 | return $userId; |
||
| 21 | } |
||
| 43 |