Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.2098 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 1 | public function __construct($id, $sender) |
|
27 | { |
||
28 | 1 | if (! $sender) { |
|
29 | throw new Exception('Missing sender address'); |
||
30 | } |
||
31 | |||
32 | 1 | if (! $id) { |
|
33 | throw new Exception('Missing subscription id'); |
||
34 | } |
||
35 | |||
36 | 1 | $this->sender = 'tel:'.$this->normalizePhoneNumber($sender); |
|
37 | |||
38 | 1 | $this->id = $id; |
|
39 | 1 | } |
|
73 |