| 1 | <?php |
||
| 7 | class Config |
||
| 8 | { |
||
| 9 | use Options; |
||
| 10 | |||
| 11 | /** @var array<mixed> */ |
||
| 12 | protected $options = []; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | protected $bodyFormat = 'json'; |
||
| 16 | |||
| 17 | /** @var bool */ |
||
| 18 | protected $throwErrors = false; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return Config |
||
| 22 | */ |
||
| 23 | public static function make() |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Config constructor |
||
| 30 | */ |
||
| 31 | public function __construct() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return $this |
||
| 38 | */ |
||
| 39 | protected function setDefaults(): self |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Config as array |
||
| 48 | * |
||
| 49 | * @return array<String|Array> |
||
| 50 | */ |
||
| 51 | public function toArray(): array |
||
| 55 | } |
||
| 56 |