Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class TpmEccPublicId implements KeyPublicIdInterface |
||
8 | { |
||
9 | use TpmStructureTrait; |
||
10 | |||
11 | /** |
||
12 | * @var ByteBuffer |
||
13 | */ |
||
14 | private $x; |
||
15 | |||
16 | /** |
||
17 | * @var ByteBuffer |
||
18 | */ |
||
19 | private $y; |
||
20 | |||
21 | private function __construct(ByteBuffer $x, ByteBuffer $y) |
||
22 | { |
||
23 | $this->x = $x; |
||
24 | $this->y = $y; |
||
25 | } |
||
26 | |||
27 | public function getX(): ByteBuffer |
||
28 | { |
||
29 | return $this->x; |
||
30 | } |
||
31 | |||
32 | public function getY(): ByteBuffer |
||
33 | { |
||
34 | return $this->y; |
||
35 | } |
||
36 | |||
37 | public static function parse(ByteBuffer $buffer, int $offset, ?int &$endOffset): KeyPublicIdInterface |
||
43 | } |
||
44 | } |
||
45 |