1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-25 18:51:42 +02:00

Update ExceptionsCollector.php

This commit is contained in:
Barry vd. Heuvel
2016-04-16 22:13:09 +02:00
parent fe36d3a337
commit cb36051cb2

View File

@@ -15,7 +15,7 @@ use Exception;
/** /**
* Collects info about exceptions * Collects info about exceptions
*/ */
class ExceptionsCollector extends DataCollector implements Renderable class ExceptionsCollector extends DataCollector implements Renderable, Resettable
{ {
protected $exceptions = array(); protected $exceptions = array();
protected $chainExceptions = false; protected $chainExceptions = false;
@@ -53,6 +53,11 @@ class ExceptionsCollector extends DataCollector implements Renderable
return $this->exceptions; return $this->exceptions;
} }
public function reset()
{
$this->exceptions = array();
}
public function collect() public function collect()
{ {
return array( return array(