| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class UserResolver |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var TokenStorageInterface |
||
| 15 | */ |
||
| 16 | private $tokenStorage; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param TokenStorageInterface $tokenStorage |
||
| 20 | */ |
||
| 21 | 18 | public function __construct(TokenStorageInterface $tokenStorage) |
|
| 22 | { |
||
| 23 | 18 | $this->tokenStorage = $tokenStorage; |
|
| 24 | 18 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @throws \Exception |
||
| 28 | * |
||
| 29 | * @return User |
||
| 30 | */ |
||
| 31 | 9 | public function getCurrentUser() |
|
| 46 | } |
||
| 47 | } |
||
| 48 |