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

Seeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
run() 0 1 ?
A call() 0 6 1
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