Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
45 | 6 | public function __construct(string $data) |
|
46 | { |
||
47 | 6 | $this->_identifier = Identifier::fromDER($data, $this->_contentOffset); |
|
48 | // check that length encoding is valid |
||
49 | 6 | Length::expectFromDER($data, $this->_contentOffset); |
|
50 | 6 | $this->_der = $data; |
|
51 | 6 | $this->_typeTag = $this->_identifier->intTag(); |
|
52 | 6 | } |
|
90 |