InputArgumentType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A initializeMembers() 0 7 1
1
<?php
2
3
4
namespace SmartWeb\ModuleTesting\Console;
5
6
use Eloquent\Enumeration\AbstractValueMultiton;
7
use Symfony\Component\Console\Input\InputArgument;
8
9
10
/**
11
 * Class InputArgumentType
12
 *
13
 * @method static static required()
14
 * @method static static optional()
15
 * @method static static requiredArray()
16
 * @method static static optionalArray()
17
 *
18
 * @package SmartWeb\ModuleTesting\Console
19
 */
20
final class InputArgumentType extends AbstractValueMultiton
21
{
22
    
23
    protected static function initializeMembers()
24
    {
25
        new static('required', InputArgument::REQUIRED);
26
        new static('optional', InputArgument::OPTIONAL);
27
        new static('requiredArray', InputArgument::REQUIRED | InputArgument::IS_ARRAY);
28
        new static('optionalArray', InputArgument::OPTIONAL | InputArgument::IS_ARRAY);
29
    }
30
    
31
}
32