Total Complexity | 6 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
3 | class PropertyWriter { |
||
4 | private $closure; |
||
5 | public function __construct($object) { |
||
12 | } |
||
13 | } |
||
14 | |||
15 | public function write($data) { |
||
16 | if ($data != null) { |
||
17 | foreach ($data as $key => $value) { |
||
18 | ($this->closure)($key, $this->processDates($value)); |
||
19 | } |
||
20 | } |
||
21 | } |
||
22 | |||
23 | private function processDates($obj) { |
||
26 | } |
||
27 | } |