| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | public function config(): array |
||
| 36 | { |
||
| 37 | return [ |
||
| 38 | 'class' => AccountsCollection::class, |
||
| 39 | 'envelope' => $this->envelope, |
||
| 40 | 'properties' => [ |
||
| 41 | 'count' => 'count', |
||
| 42 | ], |
||
| 43 | 'relations' => [ |
||
| 44 | 'pageInfo' => [ |
||
| 45 | 'class' => PageInfo::class, |
||
| 46 | 'envelope' => 'page_info', |
||
| 47 | 'properties' => [ |
||
| 48 | 'hasNextPage' => 'has_next_page', |
||
| 49 | 'endCursor' => 'end_cursor', |
||
| 50 | ], |
||
| 51 | ], |
||
| 52 | 'accounts' => [ |
||
| 53 | 'multiple' => true, |
||
| 54 | 'class' => Account::class, |
||
| 55 | 'envelope' => 'edges', |
||
| 56 | 'properties' => [ |
||
| 57 | 'id' => 'node.id', |
||
| 58 | 'username' => 'node.username', |
||
| 59 | 'fullName' => 'node.full_name', |
||
| 60 | 'profilePicUrl' => 'node.profile_pic_url', |
||
| 61 | 'isPrivate' => 'node.is_private', |
||
| 62 | 'isVerified' => 'node.is_verified', |
||
| 63 | ], |
||
| 68 | } |