| Total Complexity | 3 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class GenericSignature extends Signature |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Signature value. |
||
| 17 | * |
||
| 18 | * @var BitString |
||
| 19 | */ |
||
| 20 | private $_signature; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Signature algorithm. |
||
| 24 | * |
||
| 25 | * @var AlgorithmIdentifierType |
||
| 26 | */ |
||
| 27 | private $_signatureAlgorithm; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Constructor. |
||
| 31 | * |
||
| 32 | * @param BitString $signature Signature value |
||
| 33 | * @param AlgorithmIdentifierType $algo Algorithm identifier |
||
| 34 | */ |
||
| 35 | 2 | public function __construct(BitString $signature, AlgorithmIdentifierType $algo) |
|
| 39 | 2 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get the signature algorithm. |
||
| 43 | * |
||
| 44 | * @return AlgorithmIdentifierType |
||
| 45 | */ |
||
| 46 | 1 | public function signatureAlgorithm(): AlgorithmIdentifierType |
|
| 47 | { |
||
| 48 | 1 | return $this->_signatureAlgorithm; |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 1 | public function bitString(): BitString |
|
| 57 | } |
||
| 58 | } |
||
| 59 |