Collection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 1
Metric Value
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 10
c 4
b 0
f 1
eloc 4
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAllowedItems() 0 2 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Nexendrie\Menu;
5
6
use Nexendrie\Utils\Collection as BaseCollection;
7
8
/**
9
 * Collection of menu items
10
 *
11
 * @author Jakub Konečný
12
 * @internal
13
 * @property-read MenuItem[] $allowedItems
14
 */
15 1
abstract class Collection extends BaseCollection {
16
  use \Nette\SmartObject;
17
18
  protected string $class = MenuItem::class;
19
  
20
  /**
21
   * @return MenuItem[]
22
   * @deprecated Access the property directly
23
   */
24
  public function getAllowedItems(): array {
25 1
    return $this->getItems(["allowed" => true]);
26
  }
27
}
28
?>