private function setDebug(bool $flag) { if ($this->debug !== null) { throw new \LogicException("Debug mode can't be altered at run-time"); } $this->debug = $flag; }