AuditDriverCommand::getDefaultNamespace()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
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