MakeHandlerCommand::getOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace R\Hive\Commands;
4
5
class MakeHandlerCommand extends HiveGeneratorCommand
6
{
7
    /**
8
     * The console command name.
9
     *
10
     * @var string
11
     */
12
    protected $name = 'hive:handler';
13
14
    /**
15
     * The console command description.
16
     *
17
     * @var string
18
     */
19
    protected $description = 'Create a new Hive handler class.';
20
21
    /**
22
     * The type of class being generated.
23
     *
24
     * @var string
25
     */
26
    protected $type = 'Handler';
27
28
    /**
29
     * Execute the console command.
30
     *
31
     * @return void
32
     */
33
    public function fire()
34
    {
35
        parent::fire();
36
    }
37
38
    /**
39
     * Get the stub file for the generator.
40
     *
41
     * @return string
42
     */
43
    protected function getStub()
44
    {
45
        return __DIR__.'/stubs/handler.stub';
46
    }
47
48
    /**
49
     * Get the default namespace for the class.
50
     *
51
     * @param string $rootNamespace
52
     *
53
     * @return string
54
     */
55
    protected function getDefaultNamespace($rootNamespace)
56
    {
57
        return $rootNamespace.'\Lib\Commands\Handlers';
58
    }
59
60
    /**
61
     * Get the console command options.
62
     *
63
     * @return array
64
     */
65
    protected function getOptions()
66
    {
67
        return [
68
            //
69
        ];
70
    }
71
}
72