for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Webino (http://webino.sk/)
*
* @link https://github.com/webino/WebinoDebug/ for the canonical source repository
* @copyright Copyright (c) 2014-2018 Webino, s. r. o. (http://webino.sk/)
* @license BSD-3-Clause
*/
namespace WebinoDebug\Service;
use WebinoDebug\Debugger\PanelInterface;
use WebinoDebug\Debugger\DebuggerBarInterface;
use WebinoDebug\Debugger\DebuggerInterface;
* Class NullDebugger
class NullDebugger implements
DebuggerInterface,
DebuggerBarInterface
{
* @var object
private $dummy;
* {@inheritdoc}
public function dump($subject)
$this->dummy or $this->initDummy();
return $this->dummy;
}
public function timer($name = null)
public function setBarPanel(PanelInterface $panel = null, $id = null)
return;
public function setBarInfo(string $label, $value)
* Initialize dummy object
private function initDummy()
$this->dummy = new class {
public function __call($name, $arguments)
return null;
};
* @deprecated use dump() instead, now it returns stringable object
public function dumpStr($subject)
return '';
* @deprecated use dump() instead, now it returns object
public function barDump($subject, $title = null, array $options = null)