| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 2 / 2 | CRAP | 100.00% covered (success) | 100.00% | 1 / 1
SignaturePubkeyPair | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 2 / 2 | 2 | 100.00% covered (success) | 100.00% | 1 / 1
__construct | 100.00% covered (success) | 100.00% | 2 / 2 | 100.00% covered (success) | 100.00% | 1 / 1 | 1 |
getPublicKey | 100.00% covered (success) | 100.00% | 1 / 1 | 100.00% covered (success) | 100.00% | 1 / 1 | 1 |

1 | <?php
2 |
3 | namespace Attestto\SolanaPhpSdk\Util;
4 |
5 | use Attestto\SolanaPhpSdk\PublicKey;
6 |
7 | class SignaturePubkeyPair implements HasPublicKey
8 | {
9 | protected PublicKey $publicKey;
10 | public ?string $signature;
11 |
12 | public function __construct(PublicKey $publicKey, ?string $signature = null)
13 | {
14 | $this->publicKey = $publicKey;
15 | $this->signature = $signature;
16 | }
17 |
18 | public function getPublicKey(): PublicKey
19 | {
20 | return $this->publicKey;
21 | }
22 | }