| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Client |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The CDC server we send requests to. |
||
| 17 | * |
||
| 18 | * @var \SimpleSAML\Module\cdc\Server |
||
| 19 | */ |
||
| 20 | private Server $server; |
||
| 21 | |||
| 22 | |||
| 23 | /** |
||
| 24 | * Initialize a CDC client. |
||
| 25 | * |
||
| 26 | * @param string $domain The domain we should query the server for. |
||
| 27 | */ |
||
| 28 | public function __construct( |
||
| 32 | } |
||
| 33 | |||
| 34 | |||
| 35 | /** |
||
| 36 | * Receive a CDC response. |
||
| 37 | * |
||
| 38 | * @return array<mixed>|null The response, or NULL if no response is received. |
||
| 39 | */ |
||
| 40 | public function getResponse(): ?array |
||
| 43 | } |
||
| 44 | |||
| 45 | |||
| 46 | /** |
||
| 47 | * Send a request. |
||
| 48 | * |
||
| 49 | * @param string $returnTo The URL we should return to afterwards. |
||
| 50 | * @param string $op The operation we are performing. |
||
| 51 | * @param array<mixed> $params Additional parameters. |
||
| 52 | */ |
||
| 53 | public function sendRequest(string $returnTo, string $op, array $params = []): void |
||
| 60 |