woocommerce
/
src
/
Admin
/
Features
/
Fulfillments
/
DataStore
/
FulfillmentsDataStoreInterface.php
FulfillmentsDataStoreInterface.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Fulfillments Data Store Interface |
| 4 | */ |
| 5 | |
| 6 | declare( strict_types=1 ); |
| 7 | |
| 8 | namespace Automattic\WooCommerce\Admin\Features\Fulfillments\DataStore; |
| 9 | |
| 10 | use Automattic\WooCommerce\Admin\Features\Fulfillments\Fulfillment; |
| 11 | |
| 12 | /** |
| 13 | * Interface FulfillmentsDataStoreInterface |
| 14 | * |
| 15 | * @package Automattic\WooCommerce\Admin\Features\Fulfillments\DataStore |
| 16 | */ |
| 17 | interface FulfillmentsDataStoreInterface { |
| 18 | /** |
| 19 | * Read the fulfillment data. |
| 20 | * |
| 21 | * @param string $entity_type The entity type. |
| 22 | * @param string $entity_id The entity ID. |
| 23 | * |
| 24 | * @return Fulfillment[] Fulfillment object. |
| 25 | */ |
| 26 | public function read_fulfillments( string $entity_type, string $entity_id ): array; |
| 27 | } |
| 28 |