NavigationItem: Drop interface Countable
$item->count(), count of what? $item->getChildren()->count(), Its children, of course! refs #5600
This commit is contained in:
parent
f4a6ab73c0
commit
00447488ee
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
namespace Icinga\Web\Navigation;
|
namespace Icinga\Web\Navigation;
|
||||||
|
|
||||||
use Countable;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use IteratorAggregate;
|
use IteratorAggregate;
|
||||||
|
@ -15,7 +14,7 @@ use Icinga\Web\Url;
|
||||||
/**
|
/**
|
||||||
* A navigation item
|
* A navigation item
|
||||||
*/
|
*/
|
||||||
class NavigationItem implements Countable, IteratorAggregate
|
class NavigationItem implements IteratorAggregate
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Alternative markup element for items without a url
|
* Alternative markup element for items without a url
|
||||||
|
@ -129,14 +128,6 @@ class NavigationItem implements Countable, IteratorAggregate
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function count()
|
|
||||||
{
|
|
||||||
return $this->getChildren()->count();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue