| Conditions | 4 |
| Paths | 8 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function hydrate(array $data, $object) |
||
| 42 | { |
||
| 43 | $object = parent::hydrate($data, $object); |
||
| 44 | /* @var \Organizations\Entity\Template $template */ |
||
| 45 | $template=$object->getOrganization()->getTemplate(); |
||
| 46 | if (isset($data['description-label-requirements'])){ |
||
| 47 | $template->setLabelRequirements($data['description-label-requirements']); |
||
| 48 | } |
||
| 49 | if (isset($data['description-label-qualifications'])) { |
||
| 50 | $template->setLabelQualifications($data['description-label-qualifications']); |
||
| 51 | } |
||
| 52 | if (isset($data['description-label-benefits'])) { |
||
| 53 | $template->setLabelBenefits($data['description-label-benefits']); |
||
| 54 | } |
||
| 55 | return $object; |
||
| 56 | } |
||
| 57 | } |
||
| 58 |