| Total Complexity | 6 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class WorkLogHydrator implements HydratorInterface |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Extract values from an object |
||
| 14 | * |
||
| 15 | * @param WorkLogEntry $object |
||
| 16 | * @return array |
||
| 17 | */ |
||
| 18 | 1 | public function extract($object) |
|
| 25 | ]; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Hydrate $object with the provided $data. |
||
| 30 | * |
||
| 31 | * @param array $data |
||
| 32 | * @param WorkLogEntry $object |
||
| 33 | * @return object |
||
| 34 | * @throws \Exception |
||
| 35 | */ |
||
| 36 | 1 | public function hydrate(array $data, $object): WorkLogEntry |
|
| 57 |