| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class ClientCredentials |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | public $apiHost; |
||
| 9 | |||
| 10 | /** @var string */ |
||
| 11 | public $tokenEndpoint; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | public $clientId; |
||
| 15 | |||
| 16 | /** @var string */ |
||
| 17 | public $clientSecret; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * ClientCredentials constructor. |
||
| 21 | * |
||
| 22 | * @param string $apiHost |
||
| 23 | * @param string $clientId |
||
| 24 | * @param string $clientSecret |
||
| 25 | * @param string $tokenEndpoint |
||
| 26 | */ |
||
| 27 | 18 | public function __construct( |
|
| 37 | } |
||
| 38 | |||
| 39 | 9 | public function valid() |
|
| 44 |