| Conditions | 5 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public static function build(array $properties) |
||
| 24 | { |
||
| 25 | if (array_key_exists('session', $properties)) { |
||
| 26 | return new SignalProperties( |
||
| 27 | $properties['session'], |
||
| 28 | array_key_exists('data', $properties) ? $properties['data'] : null, |
||
| 29 | array_key_exists('type', $properties) ? $properties['type'] : null, |
||
| 30 | array_key_exists('to', $properties) ? $properties['to'] : null |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | throw new OpenViduInvalidArgumentException('SignalPropertiesBuilder::build spects an array with session key'); |
||
| 34 | } |
||
| 37 |