| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public static function parse(ByteBuffer $buffer, int $offset, int &$endOffset): KeyParametersInterface |
||
| 43 | { |
||
| 44 | $symmetric = $buffer->getUint16Val($offset); |
||
| 45 | $scheme = $buffer->getUint16Val($offset + 2); |
||
| 46 | $curveId = $buffer->getUint16Val($offset + 4); |
||
| 47 | $kdf = $buffer->getUint16Val($offset + 6); |
||
| 48 | $endOffset = $offset + 8; |
||
| 49 | return new self($symmetric, $scheme, $curveId, $kdf); |
||
| 50 | } |
||
| 72 |