| 1 |
<?php |
| 2 |
/** |
| 3 |
* Receipt output adapter interface. |
| 4 |
* |
| 5 |
* @package WCPOS\WooCommercePOS\Interfaces |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace WCPOS\WooCommercePOS\Interfaces; |
| 9 |
|
| 10 |
/** |
| 11 |
* Receipt_Output_Adapter_Interface interface. |
| 12 |
*/ |
| 13 |
interface Receipt_Output_Adapter_Interface { |
| 14 |
/** |
| 15 |
* Convert canonical receipt payload to target output format. |
| 16 |
* |
| 17 |
* @param array $receipt_data Canonical payload. |
| 18 |
* @param array $context Optional adapter context. |
| 19 |
* |
| 20 |
* @return string |
| 21 |
*/ |
| 22 |
public function transform( array $receipt_data, array $context = array() ): string; |
| 23 |
} |
| 24 |
|