Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
52 | protected static function fromGlobalId(string $globalId): array |
||
53 | { |
||
54 | $decodedGlobalId = base64_decode($globalId); |
||
55 | |||
56 | if (strpos($decodedGlobalId, ':') === false) { |
||
57 | throw new MalformedNodeIdException(sprintf('Node ID "%s" is malformed.', $globalId)); |
||
58 | } |
||
59 | |||
60 | return explode(':', $decodedGlobalId); |
||
61 | } |
||
63 |