| Conditions | 7 | 
| Paths | 32 | 
| Total Lines | 22 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 18 | 
| CRAP Score | 7 | 
| Changes | 7 | ||
| Bugs | 0 | Features | 3 | 
| 1 | <?php  | 
            ||
| 23 | 3 | public function build($options)  | 
            |
| 24 |     { | 
            ||
| 25 | 3 | $command = $this->path;  | 
            |
| 26 | |||
| 27 | 3 |         if (isset($options['title'])) { | 
            |
| 28 | 3 |             $command .= " /t:{$options['title']}"; | 
            |
| 29 | 3 | }  | 
            |
| 30 | 3 |         if (isset($options['image'])) { | 
            |
| 31 | 3 |             $command .= " /i:{$options['image']}"; | 
            |
| 32 | 3 | }  | 
            |
| 33 | 3 |         if (isset($options['url'])) { | 
            |
| 34 | 3 |             $command .= " /cu:{$options['url']}"; | 
            |
| 35 | 3 | }  | 
            |
| 36 | 3 |         if (isset($options['sticky']) && $options['sticky'] === true) { | 
            |
| 37 | 3 | $command .= ' /s:true';  | 
            |
| 38 | 3 | }  | 
            |
| 39 | 3 |         if (isset($options['message'])) { | 
            |
| 40 | 3 |             $command .= " {$options['message']}"; | 
            |
| 41 | 3 | }  | 
            |
| 42 | |||
| 43 | 3 | return $command;  | 
            |
| 44 | }  | 
            ||
| 45 | }  | 
            ||
| 46 |