Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | class OAuth2AuthorizationException extends \Exception |
||
19 | { |
||
20 | /** |
||
21 | * @var AuthorizationRequest |
||
22 | */ |
||
23 | private $authorization; |
||
24 | |||
25 | /** |
||
26 | * @var null|string |
||
27 | */ |
||
28 | private $errorDescription; |
||
29 | |||
30 | public function __construct(string $error, ?string $errorDescription, AuthorizationRequest $authorization, ?\Throwable $previous = null) |
||
31 | { |
||
32 | $this->authorization = $authorization; |
||
33 | $this->errorDescription = $errorDescription; |
||
34 | |||
35 | parent::__construct($error, 0, $previous); |
||
36 | } |
||
37 | |||
38 | public function getAuthorization(): AuthorizationRequest |
||
41 | } |
||
42 | |||
43 | public function getErrorDescription(): ?string |
||
46 | } |
||
47 | } |
||
48 |