| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class SymfonyClient extends CwdClient |
||
| 20 | { |
||
| 21 | private $clientId; |
||
| 22 | private $clientSecret; |
||
| 23 | private $username; |
||
| 24 | private $password; |
||
| 25 | |||
| 26 | public function __construct($clientId, $clientSecret, $username, $password, $hostname) |
||
| 27 | { |
||
| 28 | $this->clientId = $clientId; |
||
| 29 | $this->clientSecret = $clientSecret; |
||
| 30 | $this->username = $username; |
||
| 31 | $this->password = $password; |
||
| 32 | $this->setApiUrl('https://'.$hostname); |
||
| 33 | |||
| 34 | parent::__construct(); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function authenticate(): Token |
||
| 40 | } |
||
| 41 | |||
| 42 | public function refresh($refreshToken): Token |
||
| 47 |