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

Bandwidth::getBaseArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
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