1212use PhpSchool \PhpWorkshop \Exercise \TemporaryDirectoryTrait ;
1313use PhpSchool \PhpWorkshop \ExerciseCheck \SelfCheck ;
1414use PhpSchool \PhpWorkshop \ExerciseCheck \StdOutExerciseCheck ;
15- use PhpSchool \PhpWorkshop \ExerciseDispatcher ;
1615use PhpSchool \PhpWorkshop \Input \Input ;
1716use PhpSchool \PhpWorkshop \Result \Failure ;
1817use PhpSchool \PhpWorkshop \Result \ResultInterface ;
@@ -31,46 +30,29 @@ class ConcernedAboutSeparation extends AbstractExercise implements ExerciseInter
3130 */
3231 private $ filesystem ;
3332
34- /**
35- * @var Generator
36- */
37- private $ faker ;
38-
3933 /**
4034 * @var Parser
4135 */
4236 private $ parser ;
4337
44- /**
45- * @param Filesystem $filesystem
46- * @param Generator $faker
47- * @param Parser $parser
48- */
49- public function __construct (Filesystem $ filesystem , Generator $ faker , Parser $ parser )
38+ public function __construct (Filesystem $ filesystem , Parser $ parser )
5039 {
5140 $ this ->filesystem = $ filesystem ;
52- $ this ->faker = $ faker ;
5341 $ this ->parser = $ parser ;
5442 }
5543
56- /**
57- * @return string
58- */
5944 public function getName (): string
6045 {
6146 return 'Concerned about Separation? ' ;
6247 }
6348
64- /**
65- * @return string
66- */
6749 public function getDescription (): string
6850 {
6951 return 'Separate code and utilise files and classes ' ;
7052 }
7153
7254 /**
73- * @return array<array<string>>
55+ * @inheritdoc
7456 */
7557 public function getArgs (): array
7658 {
@@ -112,9 +94,6 @@ public function getArgs(): array
11294 return [[$ folder , $ ext ]];
11395 }
11496
115- /**
116- * @return SolutionInterface
117- */
11897 public function getSolution (): SolutionInterface
11998 {
12099 return DirectorySolution::fromDirectory (__DIR__ . '/../../exercises/concerned-about-separation/solution ' );
@@ -125,10 +104,6 @@ public function tearDown(): void
125104 $ this ->filesystem ->remove ($ this ->getTemporaryPath ());
126105 }
127106
128- /**
129- * @param Input $input
130- * @return ResultInterface
131- */
132107 public function check (Input $ input ): ResultInterface
133108 {
134109 $ statements = $ this ->parser ->parse ((string ) file_get_contents ($ input ->getRequiredArgument ('program ' )));
@@ -152,9 +127,6 @@ public function check(Input $input): ResultInterface
152127 return new Success ($ this ->getName ());
153128 }
154129
155- /**
156- * @return ExerciseType
157- */
158130 public function getType (): ExerciseType
159131 {
160132 return new ExerciseType (ExerciseType::CLI );
0 commit comments