ApiEnable   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getApiName() 0 4 1
A getApiDescription() 0 4 1
A getValue() 0 4 1
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
}