Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
40 | public function getAccessToken(): AccessTokenInterface |
||
41 | { |
||
42 | if (!$this->accessToken instanceof AccessTokenInterface) { |
||
43 | $token = Patron::getInstance()->getTokens([ |
||
44 | 'provider' => $this->getProvider() |
||
45 | ])->one(); |
||
46 | |||
47 | $this->accessToken = $token; |
||
48 | } |
||
49 | |||
50 | return $this->accessToken; |
||
51 | } |
||
52 | } |
||
53 |