Completed
Pull Request — master (#69)
by Vladimir
02:48
created

PageManagerPreProcess::getPageManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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 19
    public function __construct(PageManager $manager)
25
    {
26 19
        $this->manager = $manager;
27 19
    }
28
29
    /**
30
     * @return PageManager
31
     */
32
    public function getPageManager()
33
    {
34
        return $this->manager;
35
    }
36
}
37