| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class PaymentPreferences |
||
| 8 | { |
||
| 9 | protected bool $autoBillOutstanding = true; |
||
| 10 | |||
| 11 | protected Money $setupFee; |
||
| 12 | |||
| 13 | protected string $setupFeeFailureAction = InitialPaymentFailureAction::CANCEL; |
||
| 14 | |||
| 15 | protected int $paymentFailureThreshold = 0; |
||
| 16 | |||
| 17 | 3 | public function __construct(Money $setupFee) |
|
| 18 | { |
||
| 19 | 3 | $this->setupFee = $setupFee; |
|
| 20 | 3 | } |
|
| 21 | |||
| 22 | 3 | public function toArray(): array |
|
| 29 | ]; |
||
| 30 | } |
||
| 32 |