Completed
Push — master ( aac319...996365 )
by Rafal
11s
created

Result::getFirstTeamResult()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
4
namespace App\GameRating\Persistence\DataProvider;
5
6
7
class Result
8
{
9
    /**
10
     * @var int
11
     */
12
    private $firstTeamResult;
13
14
    /**
15
     * @var int
16
     */
17
    private $secondTeamResult;
18
19
    /**
20
     * @var null|int
21
     */
22
    private $firstTeamUserResult;
23
24
    /**
25
     * @var null|int
26
     */
27
    private $secondTeamUserResult;
28
29
    /**
30
     * @param int $firstTeamResult
31
     * @param int $secondTeamResult
32
     * @param int|null $firstTeamUserResult
33
     * @param int|null $secondTeamUserResult
34
     */
35
    public function __construct(int $firstTeamResult, int $secondTeamResult, ?int $firstTeamUserResult, ?int $secondTeamUserResult)
36
    {
37
        $this->firstTeamResult = $firstTeamResult;
38
        $this->secondTeamResult = $secondTeamResult;
39
        $this->firstTeamUserResult = $firstTeamUserResult;
40
        $this->secondTeamUserResult = $secondTeamUserResult;
41
    }
42
43
    /**
44
     * @return int
45
     */
46
    public function getFirstTeamResult(): int
47
    {
48
        return $this->firstTeamResult;
49
    }
50
51
    /**
52
     * @return int
53
     */
54
    public function getSecondTeamResult(): int
55
    {
56
        return $this->secondTeamResult;
57
    }
58
59
    /**
60
     * @return int|null
61
     */
62
    public function getFirstTeamUserResult(): ?int
63
    {
64
        return $this->firstTeamUserResult;
65
    }
66
67
    /**
68
     * @return int|null
69
     */
70
    public function getSecondTeamUserResult(): ?int
71
    {
72
        return $this->secondTeamUserResult;
73
    }
74
75
76
77
78
}