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