TwigCollectorEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
c 2
b 0
f 0
dl 0
loc 16
ccs 0
cts 5
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getCollection() 0 3 1
1
<?php
2
3
namespace Obblm\Core\Event;
4
5
use Obblm\Core\Twig\Parts\NavigationCollection;
6
use Symfony\Contracts\EventDispatcher\Event;
7
8
class TwigCollectorEvent extends Event
9
{
10
    public const COLLECT_NAV_BAR = 'obblm.collect.nav_bar';
11
    public const COLLECT_ADMIN_BAR = 'obblm.collect.admin_bar';
12
    public const COLLECT_TEAM_CREATION_BAR = 'obblm.collect.team_creation';
13
14
    protected $collection;
15
16
    public function __construct(NavigationCollection $collection)
17
    {
18
        $this->collection = $collection;
19
    }
20
21
    public function getCollection()
22
    {
23
        return $this->collection;
24
    }
25
}
26