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

Result   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 66
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getFirstTeamResult() 0 3 1
A getSecondTeamResult() 0 3 1
A getSecondTeamUserResult() 0 3 1
A getFirstTeamUserResult() 0 3 1
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
}