WP_CLI\Bootstrap

BootstrapState::setValue()publicWP-CLI 1.0

Set the state value for a given key.

Method of the class: BootstrapState{}

No Hooks.

Return

null. Nothing.

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() code WP-CLI 2.8.0-alpha

public function setValue( $key, $value ) {
	$this->state[ $key ] = $value;
}