Total Complexity | 5 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class InvalidAuthorizationRequest extends \Exception |
||
16 | { |
||
17 | /** |
||
18 | * @var OAuthException |
||
19 | */ |
||
20 | private $oauthException; |
||
21 | /** |
||
22 | * @var UriInterface |
||
23 | */ |
||
24 | private $redirectUri; |
||
25 | /** |
||
26 | * @var ResponseModeInterface |
||
27 | */ |
||
28 | private $responseMode; |
||
29 | /** |
||
30 | * @var null|string |
||
31 | */ |
||
32 | private $state; |
||
33 | |||
34 | public function __construct(OAuthException $oauthException, |
||
35 | UriInterface $redirectUri, |
||
36 | ResponseModeInterface $responseMode, |
||
37 | ?string $state) |
||
38 | { |
||
39 | $this->oauthException = $oauthException; |
||
40 | $this->redirectUri = $redirectUri; |
||
41 | $this->responseMode = $responseMode; |
||
42 | $this->state = $state; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return OAuthException |
||
47 | */ |
||
48 | public function getOauthException(): OAuthException |
||
49 | { |
||
50 | return $this->oauthException; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return UriInterface |
||
55 | */ |
||
56 | public function getRedirectUri(): UriInterface |
||
57 | { |
||
58 | return $this->redirectUri; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return ResponseModeInterface |
||
63 | */ |
||
64 | public function getResponseMode(): ResponseModeInterface |
||
65 | { |
||
66 | return $this->responseMode; |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @return null|string |
||
71 | */ |
||
72 | public function getState(): ?string |
||
75 | } |
||
76 | |||
77 | |||
78 | } |