ApiEnable::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
nc 1
cc 1
eloc 2
nop 0
1
<?php
2
3
namespace Magium\Cli\Command;
4
5
use Magium\InvalidConfigurationException;
6
use Magium\NotFoundException;
7
use Symfony\Component\Console\Command\Command;
8
use Symfony\Component\Console\Input\ArrayInput;
9
use Symfony\Component\Console\Input\InputArgument;
10
use Symfony\Component\Console\Input\InputInterface;
11
use Symfony\Component\Console\Input\InputOption;
12
use Symfony\Component\Console\Output\OutputInterface;
13
14
class ApiEnable extends AbstractApiEnablement
15
{
16
    public function getApiName()
17
    {
18
        return 'enable';
19
    }
20
21
    public function getApiDescription()
22
    {
23
        return 'Enables API integration.  See http://www.magiumlib.com/ for more information.';
24
    }
25
26
    public function getValue()
27
    {
28
        return 1;
29
    }
30
31
32
}