Completed
Push — master ( df80f0...840f28 )
by Rafal
11s
created

UserScoreWithPosition   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPosition() 0 3 1
A getUserScore() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace App\GameRating\Persistence\DataProvider;
4
5
use App\GameRating\Business\UserPoint\Info\UserScore;
6
7
class UserScoreWithPosition
8
{
9
    /**
10
     * @var int
11
     */
12
    private $position;
13
14
    /**
15
     * @var UserScore
16
     */
17
    private $userScore;
18
19
    /**
20
     * @param int $position
21
     * @param UserScore $userScore
22
     */
23
    public function __construct(int $position, UserScore $userScore)
24
    {
25
        $this->position = $position;
26
        $this->userScore = $userScore;
27
    }
28
29
    /**
30
     * @return int
31
     */
32
    public function getPosition(): int
33
    {
34
        return $this->position;
35
    }
36
37
    /**
38
     * @return UserScore
39
     */
40
    public function getUserScore(): UserScore
41
    {
42
        return $this->userScore;
43
    }
44
}