BaseCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 22 1
1
<?php
2
3
namespace Stp\SndApi\Common\Command;
4
5
use Symfony\Component\Console\Command\Command;
6
use Symfony\Component\Console\Input\InputArgument;
7
use Symfony\Component\Console\Input\InputOption;
8
9
abstract class BaseCommand extends Command
10
{
11
    protected function configure()
12
    {
13
        $this
14
            ->addOption(
15
                'key',
16
                'k',
17
                InputOption::VALUE_OPTIONAL,
18
                'SND API key'
19
            )
20
            ->addOption(
21
                'secret',
22
                's',
23
                InputOption::VALUE_REQUIRED,
24
                'SND API secret'
25
            )
26
            ->addOption(
27
                'publicationId',
28
                'p',
29
                InputOption::VALUE_REQUIRED,
30
                'SND API publication id (common, sa, fvn, bt, ap)'
31
            );
32
    }
33
}
34