Passed
Branchmaster (706933)
by Alexey
02:55
created

TopUserDTO::getSubscribersCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Skobkin\Bundle\PointToolsBundle\DTO;
4
5
/**
6
 * Data Transfer Object for top users list
7
 */
8
class TopUserDTO
9
{
10
    /**
11
     * @var string
12
     */
13
    private $login;
14
15
    /**
16
     * @var int
17
     */
18
    private $subscribersCount;
19
20 1
    public function __construct($login, $subscribersCount)
21
    {
22 1
        $this->login = $login;
23 1
        $this->subscribersCount = $subscribersCount;
24 1
    }
25
26
    /**
27
     * @return string
28
     */
29 1
    public function getLogin()
30
    {
31 1
        return $this->login;
32
    }
33
34
    /**
35
     * @return int
36
     */
37 1
    public function getSubscribersCount()
38
    {
39 1
        return $this->subscribersCount;
40
    }
41
}