Passed
Branch v1.x-dev (59e086)
by Benjamin
04:11
created

TeamEvolutionTrait   A

Complexity

Total Complexity 18

Size/Duplication

Total Lines 153
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 18
eloc 37
c 1
b 0
f 0
dl 0
loc 153
ccs 0
cts 45
cp 0
rs 10

18 Methods

Rating   Name   Duplication   Size   Complexity  
A setTr() 0 5 1
A getGameLoss() 0 3 1
A setInjuryTake() 0 5 1
A getGameWin() 0 3 1
A getInjuryGive() 0 3 1
A getTdTake() 0 3 1
A setGameLoss() 0 5 1
A setGameDraw() 0 5 1
A setInjuryGive() 0 5 1
A getInjuryTake() 0 3 1
A setTdTake() 0 5 1
A setGameWin() 0 5 1
A getGameDraw() 0 3 1
A setTdGive() 0 5 1
A getTdGive() 0 3 1
A getTr() 0 3 1
A setPoints() 0 5 1
A getPoints() 0 3 1
1
<?php
2
3
namespace Obblm\Core\Entity\Traits;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait TeamEvolutionTrait
8
{
9
    /**
10
     * @ORM\Column(type="integer")
11
     */
12
    private $points = 0;
13
14
    /**
15
     * @ORM\Column(type="integer")
16
     */
17
    private $tdGive = 0;
18
19
    /**
20
     * @ORM\Column(type="integer")
21
     */
22
    private $tdTake = 0;
23
24
    /**
25
     * @ORM\Column(type="integer")
26
     */
27
    private $injuryGive = 0;
28
29
    /**
30
     * @ORM\Column(type="integer")
31
     */
32
    private $injuryTake = 0;
33
34
    /**
35
     * @ORM\Column(type="integer")
36
     */
37
    private $gameWin = 0;
38
39
    /**
40
     * @ORM\Column(type="integer")
41
     */
42
    private $gameDraw = 0;
43
44
    /**
45
     * @ORM\Column(type="integer")
46
     */
47
    private $gameLoss = 0;
48
49
    /**
50
     * @ORM\Column(type="integer")
51
     */
52
    private $tr = 0;
53
54
    public function getPoints(): ?int
55
    {
56
        return $this->points;
57
    }
58
59
    public function setPoints(int $points): self
60
    {
61
        $this->points = $points;
62
63
        return $this;
64
    }
65
66
    public function getTdGive(): ?int
67
    {
68
        return $this->tdGive;
69
    }
70
71
    public function setTdGive(int $tdGive): self
72
    {
73
        $this->tdGive = $tdGive;
74
75
        return $this;
76
    }
77
78
    public function getTdTake(): ?int
79
    {
80
        return $this->tdTake;
81
    }
82
83
    public function setTdTake(int $tdTake): self
84
    {
85
        $this->tdTake = $tdTake;
86
87
        return $this;
88
    }
89
90
    public function getInjuryGive(): ?int
91
    {
92
        return $this->injuryGive;
93
    }
94
95
    public function setInjuryGive(int $injuryGive): self
96
    {
97
        $this->injuryGive = $injuryGive;
98
99
        return $this;
100
    }
101
102
    public function getInjuryTake(): ?int
103
    {
104
        return $this->injuryTake;
105
    }
106
107
    public function setInjuryTake(int $injuryTake): self
108
    {
109
        $this->injuryTake = $injuryTake;
110
111
        return $this;
112
    }
113
114
    public function getGameWin(): ?int
115
    {
116
        return $this->gameWin;
117
    }
118
119
    public function setGameWin(int $gameWin): self
120
    {
121
        $this->gameWin = $gameWin;
122
123
        return $this;
124
    }
125
126
    public function getGameDraw(): ?int
127
    {
128
        return $this->gameDraw;
129
    }
130
131
    public function setGameDraw(int $gameDraw): self
132
    {
133
        $this->gameDraw = $gameDraw;
134
135
        return $this;
136
    }
137
138
    public function getGameLoss(): ?int
139
    {
140
        return $this->gameLoss;
141
    }
142
143
    public function setGameLoss(int $gameLoss): self
144
    {
145
        $this->gameLoss = $gameLoss;
146
147
        return $this;
148
    }
149
150
    public function getTr(): ?int
151
    {
152
        return $this->tr;
153
    }
154
155
    public function setTr(int $tr): self
156
    {
157
        $this->tr = $tr;
158
159
        return $this;
160
    }
161
}
162