Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
19 | 5 | public function __construct(array $options = []) |
|
20 | { |
||
21 | 5 | parent::__construct($options); |
|
22 | |||
23 | 5 | if (isset($options['refresh_token_expires_in'])) { |
|
24 | 1 | $expires = $options['refresh_token_expires_in']; |
|
25 | 1 | if (!$this->isExpirationTimestamp($expires)) { |
|
26 | 1 | $expires += time(); |
|
27 | } |
||
28 | 1 | $this->refreshTokenExpires = $expires; |
|
29 | } |
||
30 | 5 | } |
|
31 | |||
42 |