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

DBGenerate::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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