AuditDriverCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 31
ccs 0
cts 4
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefaultNamespace() 0 3 1
A getStub() 0 3 1
1
<?php
2
3
namespace OwenIt\Auditing\Console;
4
5
use Illuminate\Console\GeneratorCommand;
6
7
class AuditDriverCommand extends GeneratorCommand
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    protected $name = 'auditing:audit-driver';
13
14
    /**
15
     * {@inheritdoc}
16
     */
17
    protected $description = 'Create a new audit driver';
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    protected $type = 'AuditDriver';
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    protected function getStub()
28
    {
29
        return __DIR__ . '/../../stubs/driver.stub';
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    protected function getDefaultNamespace($rootNamespace)
36
    {
37
        return $rootNamespace . '\AuditDrivers';
38
    }
39
}
40