| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | trait TokenStorageTrait { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Token storage. |
||
| 26 | * |
||
| 27 | * @var TokenStorageInterface|null |
||
| 28 | */ |
||
| 29 | private $tokenStorage; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the token storage. |
||
| 33 | * |
||
| 34 | * @return TokenStorageInterface|null Returns the token storage. |
||
| 35 | */ |
||
| 36 | public function getTokenStorage(): ?TokenStorageInterface { |
||
| 37 | return $this->tokenStorage; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the token storage. |
||
| 42 | * |
||
| 43 | * @param TokenStorageInterface|null $tokenStorage The token storage. |
||
| 44 | * @return self Returns this instance. |
||
| 45 | */ |
||
| 46 | protected function setTokenStorage(?TokenStorageInterface $tokenStorage): self { |
||
| 49 | } |
||
| 50 | } |
||
| 51 |