@@ 13-22 (lines=10) @@ | ||
10 | ||
11 | class StarWarsData |
|
12 | { |
|
13 | private static function luke() |
|
14 | { |
|
15 | return [ |
|
16 | 'id' => '1000', |
|
17 | 'name' => 'Luke Skywalker', |
|
18 | 'friends' => ['1002', '1003', '2000', '2001'], |
|
19 | 'appearsIn' => [4, 5, 6], |
|
20 | 'homePlanet' => 'Tatooine', |
|
21 | ]; |
|
22 | } |
|
23 | ||
24 | private static function vader() |
|
25 | { |
|
@@ 45-54 (lines=10) @@ | ||
42 | ]; |
|
43 | } |
|
44 | ||
45 | private static function leia() |
|
46 | { |
|
47 | return [ |
|
48 | 'id' => '1003', |
|
49 | 'name' => 'Leia Organa', |
|
50 | 'friends' => ['1000', '1002', '2000', '2001'], |
|
51 | 'appearsIn' => [4, 5, 6], |
|
52 | 'homePlanet' => 'Alderaan', |
|
53 | ]; |
|
54 | } |
|
55 | ||
56 | private static function tarkin() |
|
57 | { |
|
@@ 77-86 (lines=10) @@ | ||
74 | ]; |
|
75 | } |
|
76 | ||
77 | private static function threepio() |
|
78 | { |
|
79 | return [ |
|
80 | 'id' => '2000', |
|
81 | 'name' => 'C-3PO', |
|
82 | 'friends' => ['1000', '1002', '1003', '2001'], |
|
83 | 'appearsIn' => [4, 5, 6], |
|
84 | 'primaryFunction' => 'Protocol', |
|
85 | ]; |
|
86 | } |
|
87 | ||
88 | /** |
|
89 | * We export artoo directly because the schema returns him |