mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 13:28:35 +01:00
36 lines
674 B
PHP
36 lines
674 B
PHP
<?php
|
|
|
|
namespace DebugBar\Tests\DataCollector;
|
|
|
|
use DebugBar\DataCollector\DataCollector;
|
|
use DebugBar\DataCollector\Renderable;
|
|
|
|
class MockCollector extends DataCollector implements Renderable
|
|
{
|
|
protected $data;
|
|
protected $name;
|
|
protected $widgets;
|
|
|
|
public function __construct($data = array(), $name = 'mock', $widgets = array())
|
|
{
|
|
$this->data = $data;
|
|
$this->name = $name;
|
|
$this->widgets = $widgets;
|
|
}
|
|
|
|
public function collect()
|
|
{
|
|
return $this->data;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function getWidgets()
|
|
{
|
|
return $this->widgets;
|
|
}
|
|
}
|