| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class UserResolver |
||
| 12 | { |
||
| 13 | private TokenStorageInterface $tokenStorage; |
||
| 14 | |||
| 15 | 49 | public function __construct(TokenStorageInterface $tokenStorage) |
|
| 16 | { |
||
| 17 | 49 | $this->tokenStorage = $tokenStorage; |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @throws NoCurrentUserException |
||
| 22 | */ |
||
| 23 | 28 | public function getCurrentUser(): User |
|
| 33 | } |
||
| 34 | } |
||
| 35 |