| Total Complexity | 6 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Mono extends ApiResource |
||
| 8 | { |
||
| 9 | /** @var string The Mono API key to be used for requests. */ |
||
| 10 | public static string $secretKey; |
||
| 11 | |||
| 12 | /** @var string The base URL for the Mono API. */ |
||
| 13 | public static $apiBaseUrl = 'https://api.withmono.com'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return string the API key used for requests |
||
| 17 | */ |
||
| 18 | public static function getSecretKey() |
||
| 19 | { |
||
| 20 | return self::$secretKey; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Sets the API key to be used for requests. |
||
| 25 | * |
||
| 26 | * @param string $secretKey |
||
| 27 | */ |
||
| 28 | public static function setSecretKey($secretKey) |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param $secretKey |
||
| 36 | * @return bool |
||
| 37 | * @throws InvalidArgumentException |
||
| 38 | */ |
||
| 39 | private static function validateSecretKey($secretKey) |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return array|object |
||
| 50 | * @throws Exceptions\IsNullException |
||
| 51 | * @throws InvalidArgumentException |
||
| 52 | * @link https://docs.mono.co/reference#list-institutions |
||
| 53 | */ |
||
| 54 | public static function coverage() |
||
| 61 |