protected final function setAnsify(string $mode) { switch ($mode) { case "auto": case "on": $this->ansify = true; break; case "off": $this->ansify = false; break; default: $this->ansify = true; break; } }