| Total Complexity | 5 | 
| Total Lines | 49 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 12 | class BasicAuthAuthenticator implements AuthenticatorInterface | ||
| 13 | { | ||
| 14 | const HEADER = 'authorization'; | ||
| 15 | |||
| 16 | /** | ||
| 17 | * @var \Xervice\Service\Middleware\Security\Validator\ValidatorCollection | ||
| 18 | */ | ||
| 19 | private $validatorCollection; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * BasicAuthAuthenticator constructor. | ||
| 23 | * | ||
| 24 | * @param \Xervice\Service\Middleware\Security\Validator\ValidatorCollection $validatorCollection | ||
| 25 | */ | ||
| 26 | public function __construct(ValidatorCollection $validatorCollection) | ||
| 27 |     { | ||
| 28 | $this->validatorCollection = $validatorCollection; | ||
| 29 | } | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @param \Illuminate\Http\Request $request | ||
| 33 | * | ||
| 34 | * @return bool | ||
| 35 | */ | ||
| 36 | public function isAuth(Request $request): bool | ||
| 49 | } | ||
| 50 | } | ||
| 51 | |||
| 52 | |||
| 53 | /** | ||
| 54 | * @param string $basicAuth | ||
| 55 | * | ||
| 56 | * @return string | ||
| 57 | */ | ||
| 58 | private function getToken(string $basicAuth) : string | ||
| 63 | } |