| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 100.00% covered (success) | 100.00% | 4 / 4 | 100.00% covered (success) | 100.00% | 2 / 2 | CRAP | 100.00% covered (success) | 100.00% | 1 / 1
AccountMeta | 100.00% covered (success) | 100.00% | 4 / 4 | 100.00% covered (success) | 100.00% | 2 / 2 | 2 | 100.00% covered (success) | 100.00% | 1 / 1
__construct | 100.00% covered (success) | 100.00% | 3 / 3 | 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 AccountMeta implements HasPublicKey
8 | {
9 | protected PublicKey $publicKey;
10 | public bool $isSigner;
11 | public bool $isWritable;
12 |
13 | public function __construct($publicKey, $isSigner, $isWritable)
14 | {
15 | $this->publicKey = $publicKey;
16 | $this->isSigner = $isSigner;
17 | $this->isWritable = $isWritable;
18 | }
19 |
20 | public function getPublicKey(): PublicKey
21 | {
22 | return $this->publicKey;
23 | }
24 | }