| Total Complexity | 6 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class UnknownAttributeValue extends AttributeValue |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * ASN.1 element. |
||
| 18 | * |
||
| 19 | * @var Element |
||
| 20 | */ |
||
| 21 | protected $_element; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Constructor. |
||
| 25 | * |
||
| 26 | * @param string $oid |
||
| 27 | * @param Element $el |
||
| 28 | */ |
||
| 29 | 5 | public function __construct(string $oid, Element $el) |
|
| 30 | { |
||
| 31 | 5 | $this->_oid = $oid; |
|
| 32 | 5 | $this->_element = $el; |
|
| 33 | 5 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 3 | public function toASN1(): Element |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 6 | public function stringValue(): string |
|
| 47 | { |
||
| 48 | // return DER encoding as a hexstring |
||
| 49 | 6 | return '#' . bin2hex($this->_element->toDER()); |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | 2 | public function equalityMatchingRule(): MatchingRule |
|
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | 3 | public function rfc2253String(): string |
|
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * {@inheritdoc} |
||
| 70 | */ |
||
| 71 | 1 | protected function _transcodedString(): string |
|
| 74 | } |
||
| 75 | } |
||
| 76 |