| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 12 |
| Ratio | 100 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 3 | View Code Duplication | public static function decode(Buffer $data) |
| 31 | { |
||
| 32 | 3 | $length = LongValue::decode($data); |
|
| 33 | 3 | $buffer = new Buffer($data->read($length)); |
|
| 34 | 3 | $elements = []; |
|
| 35 | |||
| 36 | 3 | while (!$buffer->eof()) { |
|
| 37 | 3 | $elements[] = TypifiedValue::decode($buffer); |
|
| 38 | 3 | } |
|
| 39 | |||
| 40 | 3 | return $elements; |
|
| 41 | } |
||
| 42 | } |
||
| 43 |