Test Failed
Push — master ( 9f9806...ff67c6 )
by Mauro
04:07
created

Team::getIncidences()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace MauroMoreno\DataFactory\Entity;
4
5
/**
6
 * Class Category
7
 *
8
 * @package MauroMoreno\DataFactory\Entity
9
 */
10
class Team
11
{
12
13
    /**
14
     * @var int
15
     */
16
    public $id;
17
18
    /**
19
     * @var int
20
     */
21
    public $country_id;
22
23
    /**
24
     * @var Incidence[]
25
     */
26
    public $incidences;
27
28
    /**
29
     * @var int
30
     */
31
    public $goals;
32
33
    /**
34
     * @var int
35
     */
36
    public $penalty_goals;
37
38
    /**
39
     * @var string
40
     */
41
    public $service;
42
43
    /**
44
     * @var string
45
     */
46
    public $short_name;
47
48
    /**
49
     * @return int
50
     */
51 1
    public function getId(): int
52
    {
53 1
        return $this->id;
54
    }
55
56
    /**
57
     * @param int $id
58
     *
59
     * @return Team
60
     */
61 3
    public function setId(int $id): Team
62
    {
63 3
        $this->id = $id;
64 3
        return $this;
65
    }
66
67
    /**
68
     * @return int
69
     */
70 1
    public function getCountryId(): int
71
    {
72 1
        return $this->country_id;
73
    }
74
75
    /**
76
     * @param int $country_id
77
     *
78
     * @return Team
79
     */
80 3
    public function setCountryId(int $country_id): Team
81
    {
82 3
        $this->country_id = $country_id;
83 3
        return $this;
84
    }
85
86
    /**
87
     * @return int
88
     */
89 1
    public function getGoals(): int
90
    {
91 1
        return $this->goals;
92
    }
93
94
    /**
95
     * @param int $goals
96
     *
97
     * @return Team
98
     */
99 2
    public function setGoals(int $goals): Team
100
    {
101 2
        $this->goals = $goals;
102 2
        return $this;
103
    }
104
105
    /**
106
     * @return Incidence[]
107
     */
108
    public function getIncidences()
109
    {
110
        return $this->incidences;
111
    }
112
113
    /**
114
     * @param $incidences
115
     *
116
     * @return Team
117
     */
118 2
    public function setIncidences($incidences)
119
    {
120 2
        $this->incidences = $incidences;
121 2
        return $this;
122
    }
123
124
    /**
125
     * @return int
126
     */
127 1
    public function getPenaltyGoals(): int
128
    {
129 1
        return $this->penalty_goals;
130
    }
131
132
    /**
133
     * @param int $penalty_goals
134
     *
135
     * @return Team
136
     */
137 2
    public function setPenaltyGoals(int $penalty_goals): Team
138
    {
139 2
        $this->penalty_goals = $penalty_goals;
140 2
        return $this;
141
    }
142
143
    /**
144
     * @return string
145
     */
146 1
    public function getService(): string
147
    {
148 1
        return $this->service;
149
    }
150
151
    /**
152
     * @param string $service
153
     *
154
     * @return Team
155
     */
156 2
    public function setService(string $service): Team
157
    {
158 2
        $this->service = $service;
159 2
        return $this;
160
    }
161
162
    /**
163
     * @return string
164
     */
165 1
    public function getShortName(): string
166
    {
167 1
        return $this->short_name;
168
    }
169
170
    /**
171
     * @param string $short_name
172
     *
173
     * @return Team
174
     */
175 3
    public function setShortName(string $short_name): Team
176
    {
177 3
        $this->short_name = $short_name;
178 3
        return $this;
179
    }
180
181
}
182