Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalFormState::__construct
Initialize form state.
Method of the class: OrderWithdrawalFormState{}
No Hooks.
Returns
null. Nothing (null).
Usage
$OrderWithdrawalFormState = new OrderWithdrawalFormState(); $OrderWithdrawalFormState->__construct( $screen, $data, $errors );
- $screen(string) (required)
- Current screen.
- $data(array<string,string>) (required)
- Sanitized form data.
- $errors(array<string,string>) (required)
- Validation errors keyed by field.
Changelog
| Since 11.1.0 | Introduced. |
OrderWithdrawalFormState::__construct() OrderWithdrawalFormState:: construct code WC 11.1.2
public function __construct( string $screen, array $data, array $errors ) {
$this->screen = $screen;
$this->data = $data;
$this->errors = $errors;
}