ExportProgressEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getCurrent() 0 4 1
A getTotal() 0 4 1
1
<?php
2
3
namespace TreeHouse\IoBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class ExportProgressEvent extends Event
8
{
9
    /**
10
     * @var int
11
     */
12
    protected $current;
13
14
    /**
15
     * @var int
16
     */
17
    protected $total;
18
19
    /**
20
     * @param int $current
21
     * @param int $total
22
     */
23
    public function __construct($current, $total)
24
    {
25
        $this->current = $current;
26
        $this->total = $total;
27
    }
28
29
    /**
30
     * @return int
31
     */
32
    public function getCurrent()
33
    {
34
        return $this->current;
35
    }
36
37
    /**
38
     * @return int
39
     */
40
    public function getTotal()
41
    {
42
        return $this->total;
43
    }
44
}
45