| 1 | <?php |
||
| 9 | class CollectionTestTask extends BaseTask |
||
| 10 | { |
||
| 11 | protected $key; |
||
| 12 | protected $value; |
||
| 13 | |||
| 14 | public function __construct($key, $value) |
||
| 19 | |||
| 20 | public function run() |
||
| 24 | |||
| 25 | protected function getValue() |
||
| 32 | |||
| 33 | // Note that by returning a value with the same |
||
| 34 | // key as the result, we overwrite the value generated |
||
| 35 | // by the primary task method ('run()'). If we returned |
||
| 36 | // a result with a different key, then both values |
||
| 37 | // would appear in the result. |
||
| 38 | public function parenthesizer() |
||
| 43 | |||
| 44 | public function emphasizer() |
||
| 49 | } |
||
| 50 | |||
| 51 |