| 1 | <?php |
||
| 21 | class ReadOnly extends Collection |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Delete the element from the collection |
||
| 25 | * |
||
| 26 | * @param string $element |
||
| 27 | * |
||
| 28 | * @throws Exception |
||
| 29 | */ |
||
| 30 | 1 | public function remove(string $element): void |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Set an element in the collection |
||
| 37 | * |
||
| 38 | * @param string $element |
||
| 39 | * @param mixed $value |
||
| 40 | * |
||
| 41 | * @throws Exception |
||
| 42 | */ |
||
| 43 | 1 | public function set(string $element, $value): void |
|
| 47 | } |
||
| 48 |