| Total Complexity | 2 | 
| Total Lines | 36 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 13 | class BasicAuthorization implements AuthorizationInterface  | 
            ||
| 14 | { | 
            ||
| 15 | /**  | 
            ||
| 16 | * @var string  | 
            ||
| 17 | */  | 
            ||
| 18 | protected $user;  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * @var string  | 
            ||
| 22 | */  | 
            ||
| 23 | protected $password;  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * BasicAuthorization constructor.  | 
            ||
| 27 | *  | 
            ||
| 28 | * @param string $user  | 
            ||
| 29 | * @param string $password  | 
            ||
| 30 | */  | 
            ||
| 31 | 1 | public function __construct(string $user, string $password)  | 
            |
| 35 | 1 | }  | 
            |
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * Get the http headers associated with the authorization.  | 
            ||
| 39 | *  | 
            ||
| 40 | * @param RequestInterface $request  | 
            ||
| 41 | * @return RequestInterface  | 
            ||
| 42 | */  | 
            ||
| 43 | 1 | public function handle(RequestInterface $request): RequestInterface  | 
            |
| 52 |