Completed
Push — master ( e2547a...b91078 )
by Tyler
04:34
created

Bandwidth::handleParamKey()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 3.054

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 9
cts 11
cp 0.8182
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 10
nc 3
nop 2
crap 3.054
1
<?php
2
3
namespace LeadThread\Sms\Search;
4
5
use Illuminate\Contracts\Support\Arrayable;
6
7
class Bandwidth extends Search
8
{
9 6
    protected function getBaseArray()
10
    {
11 6
        return [];
12
    }
13
14 6
    protected function handleParamKey($key, &$arr)
15
    {
16
        switch ($key) {
17 6
            case 'areacode':
18
                $arr["areaCode"] = $this->{$key};
19
                break;
20 6
            case 'country':
21
                //do nothing
22 6
                break;
23 3
            default:
24 3
                $arr[$key] = $this->{$key};
25 3
                break;
26 3
        }
27 6
    }
28
}
29