1 | <?php |
||
10 | class FailedTokenRequestAttemptResult implements TokenRequestAttemptResult |
||
11 | { |
||
12 | private $grantDecision; |
||
13 | |||
14 | public function __construct(GrantDecision $grantDecision) |
||
15 | { |
||
16 | if ($grantDecision->isAllowed()) { |
||
17 | throw new \LogicException('Could not construct FailedTokenRequestResult with an allowed GrantDecision'); |
||
18 | } |
||
19 | |||
20 | $this->grantDecision = $grantDecision; |
||
21 | } |
||
22 | |||
23 | public function getGrantDecision() |
||
27 | } |
||
28 |