| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function __construct(GrantDecision $grantDecision, AccessToken $accessToken, |
||
| 17 | RefreshToken $refreshToken = null) |
||
| 18 | { |
||
| 19 | if ($grantDecision->isDenied()) { |
||
| 20 | throw new \LogicException('Could not construct SuccessfulTokenRequestResult with a denied GrantDecision'); |
||
| 21 | } |
||
| 22 | |||
| 23 | $this->grantDecision = $grantDecision; |
||
| 24 | $this->accessToken = $accessToken; |
||
| 25 | $this->refreshToken = $refreshToken; |
||
| 26 | } |
||
| 27 | |||
| 43 |