TemplateEvent   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
cbo 1
dl 0
loc 44
c 0
b 0
f 0
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTwital() 0 4 1
A getTemplate() 0 4 1
A setTemplate() 0 4 1
1
<?php
2
namespace Goetas\Twital\EventDispatcher;
3
4
use Goetas\Twital\Template;
5
use Goetas\Twital\Twital;
6
7
/**
8
 *
9
 * @author Asmir Mustafic <[email protected]>
10
 *
11
 */
12
class TemplateEvent extends AbstractEvent
13
{
14
    /**
15
     *
16
     * @var Twital
17
     */
18
    protected $twital;
19
    /**
20
     *
21
     * @var Template
22
     */
23
    protected $template;
24
25
    public function __construct(Twital $twital, Template $template)
26 488
    {
27
        $this->twital = $twital;
28 488
        $this->template = $template;
29 488
    }
30 488
31
    /**
32
     * @return \Goetas\Twital\Twital
33
     */
34
    public function getTwital()
35 1
    {
36
        return $this->twital;
37 1
    }
38
39
    /**
40
     * @return \Goetas\Twital\Template
41
     */
42
    public function getTemplate()
43 488
    {
44
        return $this->template;
45 488
    }
46
47
    /**
48
     * @param \Goetas\Twital\Template $template
49
     * @return void
50
     */
51
    public function setTemplate(Template $template)
52 1
    {
53
        $this->template = $template;
54 1
    }
55
}
56