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