| 1 | <?php |
||
| 8 | class ClientConfig |
||
| 9 | { |
||
| 10 | |||
| 11 | private $timeout = WscCommonsContract::DEFAULT_TIMEOUT; |
||
| 12 | private $headers = []; |
||
| 13 | private $fragmentSize = WscCommonsContract::DEFAULT_FRAGMENT_SIZE; |
||
| 14 | private $context; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return int |
||
| 18 | */ |
||
| 19 | public function getTimeout(): int |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param int $timeout |
||
| 26 | */ |
||
| 27 | public function setTimeout(int $timeout) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | public function getHeaders(): array |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param array $headers |
||
| 42 | */ |
||
| 43 | public function setHeaders(array $headers) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getFragmentSize(): int |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param int $fragmentSize |
||
| 58 | */ |
||
| 59 | public function setFragmentSize(int $fragmentSize) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return mixed |
||
| 66 | */ |
||
| 67 | public function getContext() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param mixed $context |
||
| 74 | */ |
||
| 75 | public function setContext($context) |
||
| 79 | } |