| 1 | <?php |
||
| 7 | class EndpointConfig implements \ArrayAccess |
||
| 8 | { |
||
| 9 | private $config = []; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param string $property |
||
| 13 | * @param $value |
||
| 14 | * @return $this |
||
| 15 | * @throws EndpointBuildingException |
||
| 16 | */ |
||
| 17 | public function set(string $property, $value): self |
||
| 30 | |||
| 31 | public function overwrite(string $property, $value): self |
||
| 37 | |||
| 38 | public function unset(string $property): self |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritDoc |
||
| 47 | */ |
||
| 48 | public function offsetExists($offset) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritDoc |
||
| 55 | */ |
||
| 56 | public function offsetGet($offset) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @inheritDoc |
||
| 63 | */ |
||
| 64 | public function offsetSet($offset, $value) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @inheritDoc |
||
| 71 | */ |
||
| 72 | public function offsetUnset($offset) |
||
| 76 | } |
||
| 77 |