| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | public function getHydrator() |
||
| 14 | { |
||
| 15 | if (!$this->hydrator) { |
||
| 16 | $hydrator = new EntityHydrator(); |
||
| 17 | $collectionStrategy = new CollectionStrategy(); |
||
| 18 | $hydrator->addStrategy('nativeLanguages', $collectionStrategy) |
||
| 19 | ->addStrategy('languageSkills', $collectionStrategy); |
||
| 20 | |||
| 21 | $this->setHydrator($hydrator); |
||
| 22 | } |
||
| 23 | return $this->hydrator; |
||
| 24 | } |
||
| 25 | |||
| 61 |