1 | <?php |
||
18 | final class OAuth2AuthorizationException extends \Exception |
||
19 | { |
||
20 | /** |
||
21 | * @var Authorization |
||
22 | */ |
||
23 | private $authorization; |
||
24 | |||
25 | /** |
||
26 | * @var null|string |
||
27 | */ |
||
28 | private $errorDescription; |
||
29 | |||
30 | /** |
||
31 | * OAuth2AuthorizationException constructor. |
||
32 | * |
||
33 | * @param int $code |
||
34 | * @param string $error |
||
35 | * @param null|string $errorDescription |
||
36 | * @param Authorization $authorization |
||
37 | * @param \Exception|null $previous |
||
38 | */ |
||
39 | public function __construct(int $code, string $error, ?string $errorDescription, Authorization $authorization, ? \Exception $previous = null) |
||
46 | |||
47 | /** |
||
48 | * @return Authorization |
||
49 | */ |
||
50 | public function getAuthorization(): Authorization |
||
54 | |||
55 | /** |
||
56 | * @return null|string |
||
57 | */ |
||
58 | public function getErrorDescription(): ?string |
||
62 | } |
||
63 |