Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
12 | public static function fromRdnSequence(array $input): IssuerMeta |
||
13 | { |
||
14 | $items = []; |
||
15 | foreach ($input as $arr) { |
||
16 | // Get the actual item |
||
17 | $rawItem = $arr[0]; |
||
18 | $type = explode('id-at-', $rawItem['type'])[1]; |
||
19 | $value = $rawItem['value']['printableString']; |
||
20 | $items[$type] = $value; |
||
21 | } |
||
22 | |||
23 | return new static($items); |
||
24 | } |
||
25 | |||
34 |