SourceEvent   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\Twital;
5
6
/**
7
 *
8
 * @author Asmir Mustafic <[email protected]>
9
 *
10
 */
11
class SourceEvent extends AbstractEvent
12
{
13
    /**
14
     *
15
     * @var Twital
16
     */
17
    protected $twital;
18
    /**
19
     *
20
     * @var string
21
     */
22
    protected $template;
23
24
    public function __construct(Twital $twital, $template)
25 488
    {
26
        $this->twital = $twital;
27 488
        $this->template = $template;
28 488
    }
29 488
30
    /**
31
     * @return \Goetas\Twital\Twital
32
     */
33
    public function getTwital()
34 1
    {
35
        return $this->twital;
36 1
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getTemplate()
42 488
    {
43
        return $this->template;
44 488
    }
45
46
    /**
47
     * @param string $template
48
     * @return void
49
     */
50
    public function setTemplate($template)
51 487
    {
52
        $this->template = $template;
53 487
    }
54
}
55