| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class SignedData extends BasicDataStructure |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * The plain message property storage. |
||
| 23 | * |
||
| 24 | * @var string The plain message information. |
||
| 25 | */ |
||
| 26 | protected $data = ''; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The message's signature information property storage. |
||
| 30 | * |
||
| 31 | * @var string The message's digital signature information. |
||
| 32 | */ |
||
| 33 | protected $signature = ''; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Signed data constructor. |
||
| 37 | * |
||
| 38 | * @param string $plainData The plain message. |
||
| 39 | * @param string $signatureData The message's signature. |
||
| 40 | * |
||
| 41 | * @throws \Exception Validation errors. |
||
| 42 | */ |
||
| 43 | 18 | public function __construct($plainData = '', $signatureData = '') |
|
| 44 | { |
||
| 45 | 18 | $this->__set('data', $plainData); |
|
| 46 | 17 | $this->__set('signature', $signatureData); |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Signed data destructor |
||
| 51 | */ |
||
| 52 | 17 | public function __destruct() |
|
| 53 | { |
||
| 54 | 17 | } |
|
| 55 | |||
| 56 | /** |
||
| 57 | * The signed data string representation. |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | 2 | public function __toString() |
|
| 64 | } |
||
| 65 | } |
||
| 66 |