Completed
Push — dev ( 9f49ce...7f87b9 )
by Zach
02:14
created

Seeder::run()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
nc 1
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace Yarak\DB\Seeders;
4
5
abstract class Seeder
6
{
7
    /**
8
     * Run the database seed logic.
9
     */
10
    abstract public function run();
11
12
    /**
13
     * Call the run method on the given seeder class.
14
     *
15
     * @param  string $class
16
     */
17
    protected function call($class)
18
    {
19
        $seedRunner = new SeedRunner();
20
21
        $seedRunner->run($class);
22
    }
23
}
24