Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * Interface for action classes in the data sync system. |
| 4 | * |
| 5 | * @package automattic/jetpack-wp-js-data-sync |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\Jetpack\WP_JS_Data_Sync\Contracts; |
| 9 | |
| 10 | /** |
| 11 | * Interface Action_Interface |
| 12 | */ |
| 13 | interface Data_Sync_Action { |
| 14 | /** |
| 15 | * Handles the action logic. |
| 16 | * |
| 17 | * @param mixed $data JSON Data passed to the action. |
| 18 | * @param \WP_REST_Request $request The request object. |
| 19 | * @return mixed |
| 20 | */ |
| 21 | public function handle( $data, $request ); |
| 22 | } |