Passed
Push — master ( 590453...ad5a85 )
by Arthur
24:49
created

ClassGeneratorCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setArguments() 0 4 1
A setOptions() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 09.03.19
6
 * Time: 17:15.
7
 */
8
9
namespace Foundation\Generator\Abstracts;
10
11
use Foundation\Core\Larapi;
12
use Foundation\Core\Module;
13
use Foundation\Generator\Events\CommandGeneratedEvent;
14
use Illuminate\Contracts\Filesystem\FileExistsException;
15
use Illuminate\Support\Str;
16
use Nwidart\Modules\Commands\GeneratorCommand;
17
use Symfony\Component\Console\Input\InputArgument;
18
19
abstract class ClassGeneratorCommand extends AbstractGeneratorCommand
20
{
21
22
    /**
23
     * Get the console command arguments.
24
     *
25
     * @return array
26
     */
27
    protected function setArguments() :array
28
    {
29
        return [
30
            ['name', InputArgument::OPTIONAL, 'The name of the ' . $this->getGeneratorName() . '.']
31
        ];
32
    }
33
34
    /**
35
     * Get the console command options.
36
     *
37
     * @return array
38
     */
39
    protected function setOptions() :array
40
    {
41
        return [];
42
    }
43
}
44