| Total Complexity | 3 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | class OrderItem |
||
| 9 | { |
||
| 10 | protected $description; |
||
| 11 | protected $quantity; |
||
| 12 | protected $totalPrice; |
||
| 13 | protected $unitPrice; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Instantiate order item. |
||
| 17 | * |
||
| 18 | * @param string $description Order item description. |
||
| 19 | * @param integer $quantity Ordered quantity. |
||
| 20 | * @param float $totalPrice Total price for the ordered items. |
||
| 21 | * @param float $unitPrice Price per unit (optional). |
||
| 22 | */ |
||
| 23 | public function __construct( |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Generate partial GetLoy widget payload configuration for the instance. |
||
| 38 | * |
||
| 39 | * @return array Partial widget payload configuration. |
||
| 40 | */ |
||
| 41 | public function payloadConfig(): array |
||
| 54 |