woocommerce-paypal-payments/stubs/wc-blueprint.php
Daniel Dudzic 718aa6b879
Some checks are pending
CI / coding-standards-analysis-php (push) Waiting to run
CI / static-code-analysis-php (push) Waiting to run
CI / tests-unit-php (7.4) (push) Waiting to run
CI / tests-unit-php (8.0) (push) Waiting to run
CI / tests-unit-php (8.1) (push) Waiting to run
CI / tests-unit-php (8.2) (push) Waiting to run
CI / tests-unit-php (8.3) (push) Waiting to run
CI / tests-unit-php (8.4) (push) Waiting to run
🔧 Fix PHPStan errors for Settings and Blueprint classes
2026-04-23 15:19:25 +02:00

88 lines
1.5 KiB
PHP

<?php
/**
* WooCommerce Blueprint stubs for PHPStan.
*
* @package WooCommerce\PayPalCommerce
*/
namespace Automattic\WooCommerce\Blueprint\Exporters;
interface StepExporter {
/**
* @return \Automattic\WooCommerce\Blueprint\Steps\Step
*/
public function export();
/**
* @return string
*/
public function get_step_name(): string;
}
interface HasAlias {
/**
* @return string
*/
public function get_alias(): string;
}
namespace Automattic\WooCommerce\Blueprint;
interface StepProcessor {
/**
* @param object $schema
* @return StepProcessorResult
*/
public function process( $schema ): StepProcessorResult;
/**
* @return string
*/
public function get_step_class(): string;
}
class StepProcessorResult {
/**
* @param string $step_name
* @return static
*/
public static function success( string $step_name ): self {
return new self();
}
/**
* @param string $message
* @return void
*/
public function add_error( string $message ): void {}
/**
* @param string $message
* @return void
*/
public function add_warn( string $message ): void {}
/**
* @param string $message
* @return void
*/
public function add_info( string $message ): void {}
}
namespace Automattic\WooCommerce\Blueprint\Steps;
class Step {}
class SetSiteOptions extends Step {
/**
* @param array $options
*/
public function __construct( array $options = array() ) {}
/**
* @return string
*/
public static function get_step_name(): string {
return 'setSiteOptions';
}
}