| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 20 | public static function build(array $properties)  | 
            ||
| 21 |     { | 
            ||
| 22 |         switch ($properties['type']) { | 
            ||
| 23 | case 'IPCAM':  | 
            ||
| 24 | return new IPCameraOptions($properties['rtspUri'],  | 
            ||
| 25 | $properties['type'],  | 
            ||
| 26 | $properties['adaptativeBitrate'],  | 
            ||
| 27 | $properties['onlyPlayWithSubscribers'],  | 
            ||
| 28 | $properties['data']  | 
            ||
| 29 | );  | 
            ||
| 30 | default:  | 
            ||
| 31 | throw new OpenViduStreamTypeInvalidException();  | 
            ||
| 32 | }  | 
            ||
| 34 | }  |