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

Bandwidth   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 84.62%

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 22
ccs 11
cts 13
cp 0.8462
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBaseArray() 0 4 1
A handleParamKey() 0 14 3
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