ManagerSeeder::run()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 7
ccs 4
cts 4
cp 1
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace agoalofalife;
4
5
class ManagerSeeder
6
{
7
    protected $seeders;
8
9 1
    public function __construct(array $seeders)
10
    {
11 1
        $this->seeders = $seeders;
12 1
    }
13
14 1
    public function run()
15
    {
16 1
        foreach ($this->seeders as $seeder)
17
        {
18 1
            $seeder->run();
19
        }
20
    }
21
}