Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | abstract class Seeder |
||
29 | { |
||
30 | public function __construct($truncate = false) |
||
40 | } |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Returns the name of the seeder table. |
||
45 | */ |
||
46 | abstract protected static function model(); |
||
47 | |||
48 | /** |
||
49 | * Execute the seeder |
||
50 | * |
||
51 | * @param string $model |
||
52 | * @return mixed |
||
53 | */ |
||
54 | abstract protected function run(string $model): void; |
||
55 | } |
||
56 |