debug; } /** * @param bool $debug */ public function setDebug($debug) { $this->debug = $debug; return $this; } public function log($message) { if ($this->getDebug()) { fwrite(STDERR, ' [preflight] ' . $message . "\n"); } } }