Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class ArrayWalkRecursiveTransformer extends TransformerAbstract |
||
19 | { |
||
20 | /** |
||
21 | * Any callable with two argument which returns something |
||
22 | * |
||
23 | * @var callable |
||
24 | */ |
||
25 | protected $callable; |
||
26 | |||
27 | /** |
||
28 | * @var mixed |
||
29 | */ |
||
30 | protected $userData; |
||
31 | |||
32 | /** |
||
33 | * @param callable $callable Worth nothing to say that the first callback argument should |
||
34 | * be a reference if you want anything to append to the record |
||
35 | * @param null|mixed $userData |
||
36 | * |
||
37 | * @throws NodalFlowException |
||
38 | */ |
||
39 | public function __construct(callable $callable, $userData = null) |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Execute the array_map call |
||
48 | * |
||
49 | * @param array $record |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public function exec($record = null) |
||
60 |