WP_CLI\Bootstrap
BootstrapState::setValue()
Set the state value for a given key.
Method of the class: BootstrapState{}
No Hooks.
Return
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.8.0-alpha
public function setValue( $key, $value ) { $this->state[ $key ] = $value; }