Completed
Pull Request — master (#1088)
by
unknown
02:55
created

CommandArguments   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 44
ccs 0
cts 16
cp 0
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getArguments() 0 4 1
A setArguments() 0 4 1
A setOptions() 0 4 1
A getOptions() 0 4 1
1
<?php
2
3
namespace Nwidart\Modules\Console\Traits;
4
5
use Nwidart\Modules\Console\Traits\ConsoleMessages;
6
7
trait CommandArguments
8
{
9
    use ConsoleMessages;
10
11
    /**
12
     * Get console command arguments.
13
     *
14
     * @return array
15
     */
16
    protected function getArguments()
17
    {
18
        return $this->setArguments();
19
    }
20
21
    /**
22
     * Set the command arguments
23
     *
24
     * @return array
25
     */
26
    protected function setArguments(): array
27
    {
28
        return [];
29
    }
30
31
    /**
32
     * Set the command options
33
     *
34
     * @return array
35
     */
36
    protected function setOptions(): array
37
    {
38
        return [];
39
    }
40
41
    /**
42
     * Get console command options.
43
     *
44
     * @return array
45
     */
46
    protected function getOptions()
47
    {
48
        return $this->setOptions();
49
    }
50
}
51