Conditions | 7 |
Paths | 64 |
Total Lines | 25 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 21 |
CRAP Score | 7 |
Changes | 10 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
23 | 3 | public function build($options) |
|
24 | { |
||
25 | 3 | $command = $this->path; |
|
26 | |||
27 | 3 | if (isset($options['title'])) { |
|
28 | 3 | $command .= " -title {$options['title']}"; |
|
29 | 3 | } |
|
30 | 3 | if (isset($options['subtitle'])) { |
|
31 | 3 | $command .= " -subtitle {$options['subtitle']}"; |
|
32 | 3 | } |
|
33 | 3 | if (isset($options['message'])) { |
|
34 | 3 | $command .= " -message {$options['message']}"; |
|
35 | 3 | } |
|
36 | 3 | if (isset($options['image'])) { |
|
37 | 3 | $command .= " -appIcon {$options['image']}"; |
|
38 | 3 | } |
|
39 | 3 | if (isset($options['contentImage'])) { |
|
40 | 3 | $command .= " -contentImage {$options['contentImage']}"; |
|
41 | 3 | } |
|
42 | 3 | if (isset($options['url'])) { |
|
43 | 3 | $command .= " -open {$options['url']}"; |
|
44 | 3 | } |
|
45 | |||
46 | 3 | return $command; |
|
47 | } |
||
48 | } |
||
49 |