public function setDebugLogHandler($debug_log_handler)
    {
        if ($debug_log_handler !== null && is_callable($debug_log_handler)) {
            $this->debug_log_handler = $debug_log_handler;
        } elseif ($debug_log_handler === null) {
            $this->debug_log_handler = null;
        } else {
            throw new \InvalidArgumentException('Argument "debug_log_handler" must be a callable');
        }
    }
public function setDebugLogHandler($debug_log_handler)
    {
        if ($debug_log_handler !== null && is_callable($debug_log_handler)) {
            $this->debug_log_handler = $debug_log_handler;
        } elseif ($debug_log_handler === null) {
            $this->debug_log_handler = null;
        } else {
            throw new \InvalidArgumentException('Argument "debug_log_handler" must be a callable');
        }
    }
public function setDebugLogHandler ( $ debug_log_handler ) { if ( $ debug_log_handler !== null && is_callable ( $ debug_log_handler ) ) { $ this -> debug_log_handler = $ debug_log_handler ; } elseif ( $ debug_log_handler === null ) { $ this -> debug_log_handler = null ; } else { throw new \ InvalidArgumentException ( 'Argument "debug_log_handler" must be a callable' ) ; } }
Set debug log handler

@param callable|null $debug_log_handler

@throws \InvalidArgumentException
Set debug log handler