EventArgs   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 28
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getData() 0 4 1
A getInvoker() 0 4 1
1
<?php
2
3
namespace CouchDB\Events;
4
5
use Doctrine\Common\EventArgs as BaseEventArgs;
6
7
/**
8
 * @author Markus Bachmann <[email protected]>
9
 */
10
class EventArgs extends BaseEventArgs
11
{
12
    /**
13
     * @var object
14
     */
15
    protected $invoker;
16
17
    /**
18
     * @var mixed
19
     */
20
    protected $data;
21
22 2
    public function __construct($invoker, &$data = null)
23
    {
24 2
        $this->invoker = $invoker;
25 2
        $this->data = $data;
26 2
    }
27
28 1
    public function getData()
29
    {
30 1
        return $this->data;
31
    }
32
33 1
    public function getInvoker()
34
    {
35 1
        return $this->invoker;
36
    }
37
}
38