| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 0.00% covered (danger) | 0.00% | 0 / 4 | 0.00% covered (danger) | 0.00% | 0 / 3 | CRAP | 0.00% covered (danger) | 0.00% | 0 / 1
Signer | 0.00% covered (danger) | 0.00% | 0 / 4 | 0.00% covered (danger) | 0.00% | 0 / 3 | 12 | 0.00% covered (danger) | 0.00% | 0 / 1
__construct | 0.00% covered (danger) | 0.00% | 0 / 2 | 0.00% covered (danger) | 0.00% | 0 / 1 | 2 |
getPublicKey | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 1 | 2 |
getSecretKey | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 1 | 2 |

1 | <?php
2 |
3 | namespace Attestto\SolanaPhpSdk\Util;
4 |
5 | use Attestto\SolanaPhpSdk\PublicKey;
6 |
7 | class Signer implements HasPublicKey, HasSecretKey
8 | {
9 | protected PublicKey $publicKey;
10 | protected Buffer $secretKey;
11 |
12 | public function __construct(PublicKey $publicKey, Buffer $secretKey)
13 | {
14 | $this->publicKey = $publicKey;
15 | $this->secretKey = $secretKey;
16 | }
17 |
18 | public function getPublicKey(): PublicKey
19 | {
20 | return $this->publicKey;
21 | }
22 |
23 | public function getSecretKey(): Buffer
24 | {
25 | return $this->secretKey;
26 | }
27 | }