| 1 |
<?php |
| 2 |
/* Copyright (C) 2017 Icinga Development Team <[email protected]> */ |
| 3 |
|
| 4 |
namespace Icinga\Module\Toplevelview\Tree; |
| 5 |
|
| 6 |
use Icinga\Exception\NotImplementedError; |
| 7 |
|
| 8 |
/** |
| 9 |
* Leaf nodes that fetch data from the database are TLVIcingaNodes. |
| 10 |
* @codeCoverageIgnore |
| 11 |
*/ |
| 12 |
class TLVIcingaNode extends TLVTreeNode |
| 13 |
{ |
| 14 |
protected static $canHaveChildren = false; |
| 15 |
|
| 16 |
/** |
| 17 |
* Interface to fetch data for the implementation |
| 18 |
* |
| 19 |
* Needs to be extended / replaced by class |
| 20 |
* |
| 21 |
* @param $root |
| 22 |
* |
| 23 |
* @throws NotImplementedError |
| 24 |
*/ |
| 25 |
public static function fetch(/** @noinspection PhpUnusedParameterInspection */ TLVTree $root): void |
| 26 |
{ |
| 27 |
throw new NotImplementedError('fetch() has not been implemented for %s', get_class(new static)); |
| 28 |
} |
| 29 |
} |