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

MakeSeeder::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

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