BeforeRenderEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Chris\Bundle\FrontRenderBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class BeforeRenderEvent extends Event
8
{
9
    /**
10
     * @var string frontPath
11
     */
12
    protected $frontPath;
13
14
    /**
15
     * @param string $frontPath
16
     */
17 8
    public function __construct($frontPath)
18
    {
19 8
        $this->frontPath = $frontPath;
20 8
    }
21
22
    /**
23
     * @return string
24
     */
25 8
    public function getFrontPath()
26
    {
27 8
        return trim($this->frontPath);
28
    }
29
30
    /**
31
     * Set FrontPath
32
     *
33
     * @param string $frontPath
34
     *
35
     * @return $this
36
     */
37
    public function setFrontPath($frontPath)
38
    {
39
        $this->frontPath = $frontPath;
40
41
        return $this;
42
    }
43
}
44