| 1 | <?php |
||
| 28 | trait ArrayAccessTrait |
||
| 29 | { |
||
| 30 | public function offsetExists($offset)/*# : bool */ |
||
| 34 | |||
| 35 | public function offsetGet($offset) |
||
| 39 | |||
| 40 | public function offsetSet($offset, $value) |
||
| 44 | |||
| 45 | public function offsetUnset($offset) |
||
| 49 | |||
| 50 | // ContainerInterface related |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | abstract public function has(/*# string */ $id)/*# : bool */; |
||
| 56 | /** |
||
| 57 | * @return mixed|null |
||
| 58 | */ |
||
| 59 | abstract public function get(/*# string */ $id); |
||
| 60 | |||
| 61 | // WritableInterface related |
||
| 62 | /** |
||
| 63 | * @return bool |
||
| 64 | */ |
||
| 65 | abstract public function set(/*# string */ $id, $value)/*# : bool */; |
||
| 66 | } |
||
| 67 |