TopUserDTO   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLogin() 0 4 1
A getSubscribersCount() 0 4 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(string $login, int $subscribersCount)
21
    {
22 1
        $this->login = $login;
23 1
        $this->subscribersCount = $subscribersCount;
24 1
    }
25
26
    public function getLogin(): string
27
    {
28
        return $this->login;
29 1
    }
30
31 1
    public function getSubscribersCount(): int
32
    {
33
        return $this->subscribersCount;
34
    }
35
}