Monitoring\ObjectList: expect a MonitoringObject

This commit is contained in:
Thomas Gelf 2014-11-12 00:16:07 +01:00
parent 0992f6cc15
commit 4876854893

View File

@ -5,7 +5,7 @@ namespace Icinga\Module\Monitoring\Object;
use ArrayIterator; use ArrayIterator;
use Countable; use Countable;
use IteratorAggregate; use IteratorAggregate;
use Icinga\Module\Monitoring\Backend; use Icinga\Module\Monitoring\Backend\MonitoringBackend;
abstract class ObjectList implements Countable, IteratorAggregate abstract class ObjectList implements Countable, IteratorAggregate
{ {
@ -21,7 +21,7 @@ abstract class ObjectList implements Countable, IteratorAggregate
protected $count; protected $count;
public function __construct(Backend $backend) public function __construct(MonitoringBackend $backend)
{ {
$this->backend = $backend; $this->backend = $backend;
} }