RouteInterface.php
22 lines
| 1 | <?php |
| 2 | namespace Automattic\WooCommerce\StoreApi\Routes; |
| 3 | |
| 4 | /** |
| 5 | * RouteInterface. |
| 6 | */ |
| 7 | interface RouteInterface { |
| 8 | /** |
| 9 | * Get the path of this REST route. |
| 10 | * |
| 11 | * @return string |
| 12 | */ |
| 13 | public function get_path(); |
| 14 | |
| 15 | /** |
| 16 | * Get arguments for this REST route. |
| 17 | * |
| 18 | * @return array An array of endpoints. |
| 19 | */ |
| 20 | public function get_args(); |
| 21 | } |
| 22 |