Track   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 53
ccs 11
cts 11
cp 1
rs 10
c 1
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getTrackerName() 0 4 1
A getEventName() 0 4 1
A getValues() 0 4 1
1
<?php
2
3
/**
4
* This file is part of the Meup TagCommander Bundle.
5
*
6
* (c) 1001pharmacies <http://github.com/1001pharmacies/tagcommander-bundle>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace Meup\Bundle\TagcommanderBundle\EventDispatcher\Event;
13
14
use Symfony\Component\EventDispatcher\Event;
15
16
/**
17
 * 
18
 */
19
class Track extends Event
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $tracker;
25
26
    /**
27
     * @var string
28
     */
29
    protected $event;
30
31
    /**
32
     * @var array
33
     */
34
    protected $values;
35
36
    /**
37
     * @param string $tracker
38
     * @param string $event
39
     * @param array $values
40
     */
41 3
    public function __construct($tracker, $event, $values = array())
42
    {
43 3
        $this->tracker = $tracker;
44 3
        $this->event   = $event;
45 3
        $this->values  = $values;
46 3
    }
47
48
    /**
49
     * @return string
50
     */
51 2
    public function getTrackerName()
52
    {
53 2
        return $this->tracker;
54
    }
55
56
    /**
57
     * @return string
58
     */
59 2
    public function getEventName()
60
    {
61 2
        return $this->event;
62
    }
63
64
    /**
65
     * @return array
66
     */
67 2
    public function getValues()
68
    {
69 2
        return $this->values;
70
    }
71
}
72