You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
774 B
PHTML
48 lines
774 B
PHTML
8 months ago
|
<?php
|
||
|
/**
|
||
|
* The wizard step contract.
|
||
|
*
|
||
|
* @since 0.9.0
|
||
|
* @package RankMath
|
||
|
* @subpackage RankMath\Wizard
|
||
|
* @author Rank Math <support@rankmath.com>
|
||
|
*/
|
||
|
|
||
|
namespace RankMath\Wizard;
|
||
|
|
||
|
defined( 'ABSPATH' ) || exit;
|
||
|
|
||
|
/**
|
||
|
* Wizard step contract.
|
||
|
*/
|
||
|
interface Wizard_Step {
|
||
|
|
||
|
/**
|
||
|
* Render step body.
|
||
|
*
|
||
|
* @param object $wizard Wizard class instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function render( $wizard );
|
||
|
|
||
|
/**
|
||
|
* Render form for step.
|
||
|
*
|
||
|
* @param object $wizard Wizard class instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function form( $wizard );
|
||
|
|
||
|
/**
|
||
|
* Save handler for step.
|
||
|
*
|
||
|
* @param array $values Values to save.
|
||
|
* @param object $wizard Wizard class instance.
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function save( $values, $wizard );
|
||
|
}
|