-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathExerciseWithInitialCode.php
More file actions
55 lines (44 loc) 路 1.34 KB
/
Copy pathExerciseWithInitialCode.php
File metadata and controls
55 lines (44 loc) 路 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
namespace PhpSchool\PhpWorkshopTest\Asset;
use PhpSchool\PhpWorkshop\Event\EventDispatcher;
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
use PhpSchool\PhpWorkshop\Exercise\ExerciseType;
use PhpSchool\PhpWorkshop\Exercise\ProvidesInitialCode;
use PhpSchool\PhpWorkshop\Solution\SingleFileSolution;
use PhpSchool\PhpWorkshop\Solution\SolutionInterface;
class ExerciseWithInitialCode implements ExerciseInterface, ProvidesInitialCode
{
public function getName(): string
{
return 'exercise-with-initial-code';
}
public function getDescription(): string
{
// TODO: Implement getDescription() method.
}
public function getSolution(): string
{
// TODO: Implement getSolution() method.
}
public function getProblem(): string
{
// TODO: Implement getProblem() method.
}
public function tearDown(): void
{
// TODO: Implement tearDown() method.
}
public function getType(): ExerciseType
{
// TODO: Implement getType() method.
}
public function getInitialCode(): SolutionInterface
{
return SingleFileSolution::fromFile(__DIR__ . '/initial-code/init-solution.php');
}
public function getRequiredChecks(): array
{
return [];
}
public function defineListeners(EventDispatcher $dispatcher): void {}
}