| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function getCreatedPostsConnection(UserId $userId): Connection |
||
| 39 | { |
||
| 40 | $postViewModelList = array_map( |
||
| 41 | function (Post $post) { |
||
| 42 | return PostViewModel::constructFromEntity($post); |
||
| 43 | }, |
||
| 44 | $this->postRepository->findAllByUserId($userId)->toArray() |
||
| 45 | ); |
||
| 46 | |||
| 47 | return ConnectionBuilder::connectionFromArray($postViewModelList); |
||
| 48 | } |
||
| 49 | |||
| 55 |