| Total Complexity | 6 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | class Session implements SessionInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var BaseSession |
||
| 12 | */ |
||
| 13 | private $baseSession; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param ConfigInterface $config |
||
| 17 | */ |
||
| 18 | public function __construct(ConfigInterface $config) |
||
| 24 | ); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $options |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function getAuthorizeUrl(array $options = []) : string |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $authorizationCode |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function requestAccessToken(string $authorizationCode) : bool |
||
| 41 | { |
||
| 42 | return $this->baseSession->requestAccessToken($authorizationCode); |
||
| 43 | } |
||
| 44 | |||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getAccessToken() : string |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getRefreshToken() : string |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param string $refreshToken |
||
| 64 | * @return bool |
||
| 65 | */ |
||
| 66 | public function refreshAccessToken(string $refreshToken) : bool |
||
| 72 | } |