| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 100.00% covered (success) | 100.00% | 5 / 5 | 100.00% covered (success) | 100.00% | 1 / 1 | CRAP | 100.00% covered (success) | 100.00% | 1 / 1
ConfirmOptions | 100.00% covered (success) | 100.00% | 5 / 5 | 100.00% covered (success) | 100.00% | 1 / 1 | 1 | 100.00% covered (success) | 100.00% | 1 / 1
__construct | 100.00% covered (success) | 100.00% | 5 / 5 | 100.00% covered (success) | 100.00% | 1 / 1 | 1 |

1 | <?php
2 |
3 | namespace Attestto\SolanaPhpSdk\Util;
4 |
5 | /**
6 | * @property bool $skipPreflight
7 | * @property Commitment $commitment
8 | * @property Commitment $preflightCommitment
9 | * @property int $maxRetries
10 | * @property int $minContextSlot
11 | */
12 | class ConfirmOptions
13 | {
14 | public bool $skipPreflight;
15 | public Commitment $commitment;
16 | public Commitment $preflightCommitment;
17 | public int $maxRetries;
18 | public int $minContextSlot;
19 |
20 | /**
21 | * @param bool $skipPreflight
22 | * @param Commitment|null $commitment
23 | * @param Commitment|null $preflightCommitment
24 | * @param int $maxRetries
25 | * @param int $minContextSlot
26 | */
27 | public function __construct(
28 | bool $skipPreflight = false,
29 | Commitment $commitment = new Commitment('confirmed'),
30 | Commitment $preflightCommitment = new Commitment('confirmed'),
31 | int $maxRetries = 0,
32 | int $minContextSlot = 0
33 | ) {
34 | $this->skipPreflight = $skipPreflight;
35 | $this->commitment = $commitment;
36 | $this->preflightCommitment = $preflightCommitment;
37 | $this->maxRetries = $maxRetries;
38 | $this->minContextSlot = $minContextSlot;
39 | }
40 | }