BaseCommand::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

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