| 1 | <?php  | 
            ||
| 11 | class AuthorizationResponse implements ResponseInterface  | 
            ||
| 12 | { | 
            ||
| 13 | use ResponseTrait;  | 
            ||
| 14 | |||
| 15 | const AUTHORISED = true;  | 
            ||
| 16 | const UNAUTHORISED = false;  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * @var bool  | 
            ||
| 20 | */  | 
            ||
| 21 | private $authorized;  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * AuthorizationResponse constructor.  | 
            ||
| 25 | * @param HttpResponse $response  | 
            ||
| 26 | * @param $authorized  | 
            ||
| 27 | */  | 
            ||
| 28 | public function __construct(HttpResponse $response, $authorized)  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @return bool  | 
            ||
| 36 | */  | 
            ||
| 37 | public function isAuthorized()  | 
            ||
| 41 | }  | 
            ||
| 42 |