Completed
Push — master ( 7bae76...0958d1 )
by Vladimir
9s
created

PageManagerPreProcess   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getPageManager() 0 4 1
1
<?php
2
3
/**
4
 * @copyright 2018 Vladimir Jimenez
5
 * @license   https://github.com/stakx-io/stakx/blob/master/LICENSE.md MIT
6
 */
7
8
namespace allejo\stakx\Event;
9
10
use allejo\stakx\Manager\PageManager;
11
use Symfony\Component\EventDispatcher\Event;
12
13
/**
14
 * This event is fired before the PageManager begins processing PageViews.
15
 *
16
 * @since 0.2.0
17
 */
18
class PageManagerPreProcess extends Event
19
{
20
    const NAME = 'pagemanager.process.pre_process';
21
22
    private $manager;
23
24 20
    public function __construct(PageManager $manager)
25
    {
26 20
        $this->manager = $manager;
27 20
    }
28
29
    /**
30
     * @return PageManager
31
     */
32 1
    public function getPageManager()
33
    {
34 1
        return $this->manager;
35
    }
36
}
37