SingleProcessor.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Single processor interface. |
| 4 | * |
| 5 | * @package Tutor |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 3.8.2 |
| 9 | */ |
| 10 | |
| 11 | namespace Tutor\Migrations\Contracts; |
| 12 | |
| 13 | /** |
| 14 | * Interface SingleProcessor |
| 15 | * |
| 16 | * @since 3.8.2 |
| 17 | */ |
| 18 | interface SingleProcessor { |
| 19 | /** |
| 20 | * Process a single item of a batch. |
| 21 | * |
| 22 | * @param mixed $item item. |
| 23 | * |
| 24 | * @return void |
| 25 | */ |
| 26 | public function process_item( $item ): void; |
| 27 | } |
| 28 |