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