Automattic\WooCommerce\Internal\CLI\Migrator\Core
ProductsController::get_user_input
Get user input from STDIN. Separate method for easier testing.
Method of the class: ProductsController{}
No Hooks.
Returns
String. User input, trimmed and lowercased.
Usage
// protected - for code of main (parent) or child class $result = $this->get_user_input(): string;
ProductsController::get_user_input() ProductsController::get user input code WC 10.8.1
protected function get_user_input(): string {
return strtolower( trim( fgets( STDIN ) ) );
}