1 | <?php |
||
23 | class DependencyHeaven extends AbstractExercise implements |
||
24 | ExerciseInterface, |
||
25 | CgiExercise, |
||
26 | ComposerExerciseCheck |
||
27 | { |
||
28 | /** |
||
29 | * @var Generator |
||
30 | */ |
||
31 | private $faker; |
||
32 | |||
33 | /** |
||
34 | * @param Generator $faker |
||
35 | */ |
||
36 | public function __construct(Generator $faker) |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getName() |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getDescription() |
||
56 | |||
57 | /** |
||
58 | * @return SolutionInterface |
||
59 | */ |
||
60 | public function getSolution() |
||
64 | |||
65 | /** |
||
66 | * @return RequestInterface[] |
||
67 | */ |
||
68 | public function getRequests() |
||
80 | |||
81 | /** |
||
82 | * @param string $endpoint |
||
83 | * @return RequestInterface |
||
84 | */ |
||
85 | private function newApiRequest($endpoint) |
||
97 | |||
98 | /** |
||
99 | * @return array |
||
100 | */ |
||
101 | public function getRequiredPackages() |
||
108 | |||
109 | /** |
||
110 | * @return ExerciseType |
||
111 | */ |
||
112 | public function getType() |
||
116 | |||
117 | /** |
||
118 | * @param ExerciseDispatcher $dispatcher |
||
119 | */ |
||
120 | public function configure(ExerciseDispatcher $dispatcher) |
||
124 | } |
||
125 |