Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
33.33% |
1 / 3 |
|
33.33% |
1 / 3 |
CRAP | |
0.00% |
0 / 1 |
| Order | |
33.33% |
1 / 3 |
|
33.33% |
1 / 3 |
5.67 | |
0.00% |
0 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| get_refunds | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_customer_id | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | // "order": { |
| 4 | // "refunds": null, |
| 5 | // "customer_id": null |
| 6 | // } |
| 7 | |
| 8 | namespace BrianHenryIE\WP_Plugin_Updater\Integrations\SLSWC\Model; |
| 9 | |
| 10 | class Order { |
| 11 | |
| 12 | public function __construct( |
| 13 | protected ?int $refunds, |
| 14 | protected ?int $customer_id |
| 15 | ) { |
| 16 | } |
| 17 | |
| 18 | public function get_refunds(): ?int { |
| 19 | return $this->refunds; |
| 20 | } |
| 21 | |
| 22 | public function get_customer_id(): ?int { |
| 23 | return $this->customer_id; |
| 24 | } |
| 25 | } |