| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 18 | public function denormalize($data, $class, $format = null, array $context = array()): User |
||
| 19 | { |
||
| 20 | return new User( |
||
| 21 | Uuid::fromString($data['id']), |
||
| 22 | new Email($data['email']), |
||
| 23 | Password::fromHash($data['password']), |
||
| 24 | new NotEmptyString($data['lastName']), |
||
| 25 | new NotEmptyString($data['firstName']), |
||
| 26 | new Role($data['role']) |
||
| 27 | ); |
||
| 38 |