Completed
Push — master ( 4deee6...b383ba )
by Zach
05:43 queued 03:44
created

DBSeed::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 8
rs 9.4285
1
<?php
2
3
namespace Yarak\Commands;
4
5
use Yarak\Console\YarakCommand;
6
use Yarak\DB\Seeders\SeedRunner;
7
8
class DBSeed extends YarakCommand
9
{
10
    /**
11
     * The command signature.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'db:seed
16
                            {class=DatabaseSeeder : The name of the seeder class to run.}';
17
18
    /**
19
     * The command description.
20
     *
21
     * @var string
22
     */
23
    protected $description = 'Seed the database.';
24
25
    /**
26
     * Handle the command.
27
     */
28
    protected function handle()
29
    {
30
        $seedRunner = new SeedRunner($this->getOutput());
31
32
        $seedRunner->run($this->argument('class'));
33
    }
34
}
35