Magic method to return value of the result to string
If this is a boolean result then it will return 'true' or 'false'. If it is a bindings type, then it will dump as a text based table.
string A string representation of the result.
public function __toString() {
if ($this->type == 'boolean') {
return $this->boolean ? 'true' : 'false';
}
else {
return $this
->dump(false);
}
}