Passed
Branch master (238831)
by Quetzy
07:17
created

AuditDriverMakeCommand::getStub()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * This file is part of the Laravel Auditing package.
4
 *
5
 * @author     Antério Vieira <[email protected]>
6
 * @author     Quetzy Garcia  <[email protected]>
7
 * @author     Raphael França <[email protected]>
8
 * @copyright  2015-2018
9
 *
10
 * For the full copyright and license information,
11
 * please view the LICENSE.md file that was distributed
12
 * with this source code.
13
 */
14
15
namespace OwenIt\Auditing\Console;
16
17
use Illuminate\Console\GeneratorCommand;
18
19
class AuditDriverMakeCommand extends GeneratorCommand
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected $name = 'make:audit-driver';
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    protected $description = 'Create a new audit driver';
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    protected $type = 'AuditDriver';
35
36
    /**
37
     * {@inheritdoc}
38
     */
39 3
    protected function getStub()
40
    {
41 3
        return __DIR__.'/../../drivers/driver.stub';
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47 3
    protected function getDefaultNamespace($rootNamespace)
48
    {
49 3
        return $rootNamespace.'\AuditDrivers';
50
    }
51
}
52