OnOff::getSourceData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Magium\Configuration\Source\Switches;
4
5
use Magium\Configuration\Source\SourceInterface;
6
7
class OnOff implements SourceInterface
8
{
9
10
    public function getSourceData()
11
    {
12
        return [
13
            0   => 'Off',
14
            1   => 'On',
15
        ];
16
    }
17
18
}
19