| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function userOfId(UserId $userId) : ?User |
||
| 36 | { |
||
| 37 | $userData = $this->elasticsearch->get([ |
||
| 38 | 'index' => $this->index, |
||
| 39 | 'type' => $this->type, |
||
| 40 | 'id' => $userId->id(), |
||
| 41 | ]); |
||
| 42 | |||
| 43 | return empty($userData) ? null : User::fromArray($this->normalizeElasticsearchData($userData)); |
||
| 44 | } |
||
| 45 | |||
| 61 |