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