Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | protected function map(): array |
||
19 | { |
||
20 | $class = Post::class; |
||
21 | $postMap = ArrayHelper::getValue(parent::map(), "$class.item"); |
||
22 | |||
23 | return [ |
||
24 | Location::class => [ |
||
25 | 'envelope' => 'graphql.location', |
||
26 | 'item' => [ |
||
27 | 'id' => 'id', |
||
28 | 'name' => 'name', |
||
29 | 'slug' => 'slug', |
||
30 | 'hasPublicPage' => 'has_public_page', |
||
31 | 'lat' => 'lat', |
||
32 | 'lng' => 'lng', |
||
33 | 'media' => 'edge_location_to_media.count', |
||
34 | ], |
||
35 | ], |
||
36 | Post::class => [ |
||
37 | 'envelope' => 'graphql.location.edge_location_to_top_posts.edges', |
||
38 | 'item' => $postMap, |
||
39 | ], |
||
42 | } |