Cli
1 year ago
Exporters
1 year ago
Importers
11 months ago
ResourceStorages
1 year ago
ResultFormatters
1 year ago
Schemas
1 year ago
Steps
1 year ago
docs
1 year ago
BuiltInExporters.php
1 year ago
BuiltInStepProcessors.php
1 year ago
ClassExtractor.php
1 year ago
Cli.php
1 year ago
ExportSchema.php
1 year ago
ImportSchema.php
1 year ago
ImportStep.php
1 year ago
Logger.php
1 year ago
ResourceStorages.php
1 year ago
StepProcessor.php
1 year ago
StepProcessorResult.php
1 year ago
UsePluginHelpers.php
1 year ago
UsePubSub.php
1 year ago
UseWPFunctions.php
1 year ago
Util.php
1 year ago
StepProcessor.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Automattic\WooCommerce\Blueprint; |
| 4 | |
| 5 | /** |
| 6 | * Interface StepProcessor |
| 7 | */ |
| 8 | interface StepProcessor { |
| 9 | /** |
| 10 | * Process the schema. |
| 11 | * |
| 12 | * @param object $schema The schema to process. |
| 13 | * |
| 14 | * @return StepProcessorResult |
| 15 | */ |
| 16 | public function process( $schema ): StepProcessorResult; |
| 17 | |
| 18 | /** |
| 19 | * Get the step class. |
| 20 | * |
| 21 | * @return string |
| 22 | */ |
| 23 | public function get_step_class(): string; |
| 24 | /** |
| 25 | * Check if the current user has the required capabilities for this step. |
| 26 | * |
| 27 | * @param object $schema The schema to process. |
| 28 | * |
| 29 | * @return bool True if the user has the required capabilities. False otherwise. |
| 30 | */ |
| 31 | public function check_step_capabilities( $schema ): bool; |
| 32 | } |
| 33 |