ConsoleGenerate::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Yarak\Commands;
4
5
use Yarak\Console\YarakCommand;
6
use Yarak\Console\DirectoryCreator;
7
8
class ConsoleGenerate extends YarakCommand
9
{
10
    /**
11
     * The command signature.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'console:generate';
16
17
    /**
18
     * The command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Generate the console 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