Passed
Push — master ( c7459e...5c3821 )
by Arthur
22:05
created

PolicyMakeCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 35
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A stubOptions() 0 5 1
1
<?php
2
3
namespace Foundation\Generator\Commands;
4
5
use Foundation\Generator\Abstracts\AbstractGeneratorCommand;
6
7
class PolicyMakeCommand extends AbstractGeneratorCommand
8
{
9
    /**
10
     * The console command name.
11
     *
12
     * @var string
13
     */
14
    protected $name = 'larapi:make:policy';
15
16
    /**
17
     * The name of the generated resource.
18
     *
19
     * @var string
20
     */
21
    protected $generatorName = 'policy';
22
23
    /**
24
     * The stub name.
25
     *
26
     * @var string
27
     */
28
    protected $stub = 'policy.stub';
29
30
    /**
31
     * The file path.
32
     *
33
     * @var string
34
     */
35
    protected $filePath = '/Policies';
36
37
    protected function stubOptions(): array
38
    {
39
        return [
40
            'NAMESPACE' => $this->getClassNamespace(),
41
            'CLASS' => $this->getClassName(),
42
        ];
43
    }
44
}
45