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