DBGenerate   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
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