1 | <?php |
||
25 | class DatabaseRead extends AbstractExercise implements ExerciseInterface, DatabaseExerciseCheck |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * @var Generator |
||
30 | */ |
||
31 | private $faker; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | private $randomRecord; |
||
37 | |||
38 | /** |
||
39 | * @param Generator $faker |
||
40 | */ |
||
41 | public function __construct(Generator $faker) |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getName() |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getDescription() |
||
61 | |||
62 | /** |
||
63 | * @return array |
||
64 | */ |
||
65 | public function getArgs() |
||
69 | |||
70 | /** |
||
71 | * @param PDO $db |
||
72 | * @return void |
||
73 | */ |
||
74 | public function seed(PDO $db) |
||
94 | |||
95 | /** |
||
96 | * @param PDO $db |
||
97 | * @return bool |
||
98 | */ |
||
99 | public function verify(PDO $db) |
||
109 | |||
110 | /** |
||
111 | * @return ExerciseType |
||
112 | */ |
||
113 | public function getType() |
||
117 | |||
118 | /** |
||
119 | * @param ExerciseDispatcher $dispatcher |
||
120 | */ |
||
121 | public function configure(ExerciseDispatcher $dispatcher) |
||
125 | } |
||
126 |