| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 5 | public function hydrate(array $ldapEntry) |
|
| 36 | { |
||
| 37 | 5 | $user = $this->createUser(); |
|
| 38 | |||
| 39 | 5 | $this->hydrateUserWithAttributesMap($user, $ldapEntry, $this->attributeMap); |
|
| 40 | |||
| 41 | 5 | if ($user instanceof LdapUserInterface) { |
|
| 42 | 5 | $user->setDn($ldapEntry['dn']); |
|
| 43 | 5 | } |
|
| 44 | |||
| 45 | 5 | return $user; |
|
| 46 | } |
||
| 53 |