ErrorCollector.php
630 Bytes
<?php
/**
* Created by PhpStorm.
* User: Zip
* Date: 15/4/27
* Time: 下午3:59
*/
namespace Hood\Debug\Debugbar;
use Hood\Debug\Debugbar\CollectorInterface;
class ErrorCollector implements InterfaceCollector
{
private $debugType = 'Error';
public function __construct(CollectorInterface\Error $error)
{
$this->collector[] = array(
'message' => $error->message,
'backtrace' => $error->backtrace
);
}
public function getCollector()
{
return $this->collector;
}
public function getDebugType()
{
return $this->debugType;
}
}