| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 62 | 7 | public static function register(string $name, string $email, string $password): Person |
|
| 63 | { |
||
| 64 | 7 | $person = new self(); |
|
| 65 | |||
| 66 | 7 | $person->id = Uuid::uuid4(); |
|
| 67 | 7 | $person->name = $name; |
|
| 68 | 7 | $person->email = $email; |
|
| 69 | /** @scrutinizer ignore-call */ |
||
| 70 | 7 | $person->passwordHash = password_hash($password, \PASSWORD_DEFAULT); |
|
| 71 | |||
| 72 | 7 | return $person; |
|
| 73 | } |
||
| 95 |