Completed
Push — master ( 0e1003...1276c7 )
by Abdelrahman
61:46 queued 59:06
created

ModelMakeCommand::getDefaultNamespace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cortex\Foundation\Console\Commands;
6
7
use Illuminate\Console\ConfirmableTrait;
8
use Cortex\Foundation\Traits\ConsoleMakeModuleCommand;
9
use Illuminate\Foundation\Console\ModelMakeCommand as BaseModelMakeCommand;
10
11
class ModelMakeCommand extends BaseModelMakeCommand
12
{
13
    use ConfirmableTrait;
14
    use ConsoleMakeModuleCommand;
15
16
    /**
17
     * Get the default namespace for the class.
18
     *
19
     * @param string $rootNamespace
20
     *
21
     * @return string
22
     */
23
    protected function getDefaultNamespace($rootNamespace): string
24
    {
25
        return $rootNamespace.'\Models';
26
    }
27
}
28