MakeStorableEventCommand::getStub()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Spatie\EventProjector\Console;
4
5
use Illuminate\Console\GeneratorCommand;
6
7
final class MakeStorableEventCommand extends GeneratorCommand
8
{
9
    protected $name = 'make:storable-event';
10
11
    protected $description = 'Create a storable event';
12
13
    protected $type = 'Domain event';
14
15
    protected function getStub()
16
    {
17
        return __DIR__.'/../../stubs/event.stub';
18
    }
19
20
    protected function getDefaultNamespace($rootNamespace)
21
    {
22
        return $rootNamespace.'\StorableEvents';
23
    }
24
}
25