WP_CLI
ProcessRun::__toString
Return properties of executed command as a string.
Method of the class: ProcessRun{}
No Hooks.
Returns
String.
Usage
$ProcessRun = new ProcessRun(); $ProcessRun->__toString();
ProcessRun::__toString() ProcessRun:: toString code WP-CLI 2.13.0-alpha
public function __toString() {
$out = "$ $this->command\n";
$out .= "$this->stdout\n$this->stderr";
$out .= "cwd: $this->cwd\n";
$out .= "run time: $this->run_time\n";
$out .= "exit status: $this->return_code";
return $out;
}