ExportProgressEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
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