| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | CRAP | 100.00% covered (success) | 100.00% | 1 / 1
CompiledInstruction | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 1 | 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 |

1 | <?php
2 |
3 | namespace Attestto\SolanaPhpSdk\Util;
4 |
5 | class CompiledInstruction
6 | {
7 | public int $programIdIndex;
8 | /**
9 | * array of indexes.
10 | *
11 | * @var array<integer>
12 | */
13 | public array $accounts;
14 | public Buffer $data;
15 |
16 | public function __construct(
17 | int $programIdIndex,
18 | array $accounts,
19 | $data
20 | )
21 | {
22 | $this->programIdIndex = $programIdIndex;
23 | $this->accounts = $accounts;
24 | $this->data = Buffer::from($data);
25 | }
26 | }