| @@ 25-34 (lines=10) @@ | ||
| 22 | * |
|
| 23 | * @return array |
|
| 24 | */ |
|
| 25 | public function transform($data) |
|
| 26 | { |
|
| 27 | foreach ($this->config['properties'] as $property) { |
|
| 28 | if (isset($data[$property])) { |
|
| 29 | $data[$property] = $this->parseDate($data[$property]); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| 33 | return $data; |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * @param $value |
|
| @@ 45-54 (lines=10) @@ | ||
| 42 | * |
|
| 43 | * @return array |
|
| 44 | */ |
|
| 45 | public function transform($data) |
|
| 46 | { |
|
| 47 | foreach ($this->config['properties'] as $property) { |
|
| 48 | if (isset($data[$property])) { |
|
| 49 | $data[$property] = $this->parseMoney($data[$property]); |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| 53 | return $data; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @param $value |
|