WP_CLI\Loggers
Base::get_runner()
Retrieve the runner instance from the base CLI object. This facilitates unit testing, where the WP_CLI instance isn't available
Method of the class: Base{}
No Hooks.
Return
Runner
. Instance of the runner class
Usage
// protected - for code of main (parent) or child class $result = $this->get_runner();
Base::get_runner() Base::get runner code WP-CLI 2.8.0-alpha
protected function get_runner() { return WP_CLI::get_runner(); }