Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalFormState::__construct
Initialize form state.
Метод класса: OrderWithdrawalFormState{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$OrderWithdrawalFormState = new OrderWithdrawalFormState(); $OrderWithdrawalFormState->__construct( $screen, $data, $errors );
- $screen(строка) (обязательный)
- Current screen.
- $data(array<string,string>) (обязательный)
- Sanitized form data.
- $errors(array<string,string>) (обязательный)
- Validation errors keyed by field.
Список изменений
| С версии 11.1.0 | Введена. |
Код OrderWithdrawalFormState::__construct() OrderWithdrawalFormState:: construct WC 11.2.2
public function __construct( string $screen, array $data, array $errors ) {
$this->screen = $screen;
$this->data = $data;
$this->errors = $errors;
}