WP_CLI\Bootstrap
BootstrapState::setValue
Set the state value for a given key.
Method of the class: BootstrapState{}
No Hooks.
Returns
null. Nothing (null).
Usage
$BootstrapState = new BootstrapState(); $BootstrapState->setValue( $key, $value );
- $key(string) (required)
- Key to set the state for.
- $value(mixed) (required)
- Value to set the state for the given key to.
BootstrapState::setValue() BootstrapState::setValue code WP-CLI 2.13.0-alpha
public function setValue( $key, $value ) {
$this->state[ $key ] = $value;
}