| 1 | <?php |
||
| 7 | class CallbackMod extends ItemWrapper |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Alter key and return. |
||
| 11 | * |
||
| 12 | * @param string $key |
||
| 13 | * |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public function key($key) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Alter value and return. |
||
| 23 | * |
||
| 24 | * @param string $value |
||
| 25 | * |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | public function value($value) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Call the given callback. |
||
| 35 | * |
||
| 36 | * @param string $string |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | protected function callCallback($string) |
||
| 48 | } |
||
| 49 |