| 1 | <?php |
||
| 18 | class SimpleItem implements ResourceInterface |
||
| 19 | { |
||
| 20 | use ExtraParameterTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param $data |
||
| 24 | * @param callable $transformer |
||
| 25 | * @param array $extra |
||
| 26 | * @return array|null |
||
| 27 | */ |
||
| 28 | public function __invoke($data, callable $transformer, array $extra = []) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param callable $transformer |
||
| 39 | * @param $data |
||
| 40 | * @param array $extra |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function transform(callable $transformer, $data, array $extra = []) |
||
| 60 | } |
||
| 61 |