MakeAggregateCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getStub() 0 4 1
A getDefaultNamespace() 0 4 1
1
<?php
2
3
namespace Spatie\EventProjector\Console;
4
5
use Illuminate\Console\GeneratorCommand;
6
7
final class MakeAggregateCommand extends GeneratorCommand
8
{
9
    protected $name = 'make:aggregate';
10
11
    protected $description = 'Create a new aggregate';
12
13
    protected $type = 'Aggregate';
14
15
    protected function getStub()
16
    {
17
        return __DIR__.'/../../stubs/aggregate.stub';
18
    }
19
20
    protected function getDefaultNamespace($rootNamespace)
21
    {
22
        return $rootNamespace.'\Aggregates';
23
    }
24
}
25