Total Complexity | 5 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ApnsInfo extends Parameter |
||
14 | { |
||
15 | /** |
||
16 | * @var string[] |
||
17 | */ |
||
18 | protected $properties = [ |
||
19 | 'Sound', |
||
20 | 'BadgeMode', |
||
21 | 'Title', |
||
22 | 'SubTitle', |
||
23 | 'Image' |
||
24 | ]; |
||
25 | |||
26 | |||
27 | /** |
||
28 | * |
||
29 | * @param string $value |
||
30 | * |
||
31 | * @return $this |
||
32 | */ |
||
33 | 2 | public function setSound(string $value) |
|
34 | { |
||
35 | 2 | $this->setAttribute('Sound', $value); |
|
36 | 2 | return $this; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * |
||
41 | * @param int $value |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | 2 | public function setBadgeMode(int $value) |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * |
||
53 | * @param string $value |
||
54 | * |
||
55 | * @return $this |
||
56 | */ |
||
57 | 2 | public function setTitle(string $value) |
|
61 | } |
||
62 | |||
63 | /** |
||
64 | * |
||
65 | * @param string $value |
||
66 | * |
||
67 | * @return $this |
||
68 | */ |
||
69 | 2 | public function setSubTitle(string $value) |
|
70 | { |
||
71 | 2 | $this->setAttribute('SubTitle', $value); |
|
72 | 2 | return $this; |
|
73 | } |
||
74 | |||
75 | /** |
||
76 | * |
||
77 | * @param string $value |
||
78 | * |
||
79 | * @return $this |
||
80 | */ |
||
81 | 2 | public function setImage(string $value) |
|
85 | } |
||
86 | } |
||
87 |