| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 2 | protected static function _decodeFromDER(Identifier $identifier, |
|
| 40 | string $data, int &$offset): ElementBase |
||
| 41 | { |
||
| 42 | 2 | $idx = $offset; |
|
| 43 | 2 | $len = Length::expectFromDER($data, $idx)->intLength(); |
|
| 44 | 2 | $subids = self::_decodeSubIDs(substr($data, $idx, $len)); |
|
| 45 | 2 | $offset = $idx + $len; |
|
| 46 | 2 | return new self(self::_implodeSubIDs(...$subids)); |
|
| 47 | } |
||
| 49 |