Completed
Push — master ( 1f4a40...963098 )
by Freek
01:31
created

MakeStorableEventCommand::getStub()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
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 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Spatie\EventProjector\Console;
4
5
use Illuminate\Console\GeneratorCommand;
6
7
class MakeStorableEventCommand extends GeneratorCommand
8
{
9
    protected $name = 'make:storable-event';
10
11
    protected $description = 'Create a storable event';
12
13
    protected $type = 'Storable event';
14
15
    protected function getStub()
16
    {
17
        return __DIR__.'/../../stubs/storable-event.stub';
18
    }
19
20
    protected function getDefaultNamespace($rootNamespace)
21
    {
22
        return $rootNamespace.'\Events';
23
    }
24
}
25