InputArgumentType::initializeMembers()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
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