Team::setGoals()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
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
     * @var string
50
     */
51
    public $country_slug;
52
53
    /**
54
     * @return int
55
     */
56 1
    public function getId(): int
57
    {
58 1
        return $this->id;
59
    }
60
61
    /**
62
     * @param int $id
63
     *
64
     * @return Team
65
     */
66 3
    public function setId(int $id): Team
67
    {
68 3
        $this->id = $id;
69 3
        return $this;
70
    }
71
72
    /**
73
     * @return int
74
     */
75 1
    public function getCountryId(): int
76
    {
77 1
        return $this->country_id;
78
    }
79
80
    /**
81
     * @param int $country_id
82
     *
83
     * @return Team
84
     */
85 3
    public function setCountryId(int $country_id): Team
86
    {
87 3
        $this->country_id = $country_id;
88 3
        return $this;
89
    }
90
91
    /**
92
     * @return int
93
     */
94 1
    public function getGoals(): int
95
    {
96 1
        return $this->goals;
97
    }
98
99
    /**
100
     * @param int $goals
101
     *
102
     * @return Team
103
     */
104 2
    public function setGoals(int $goals): Team
105
    {
106 2
        $this->goals = $goals;
107 2
        return $this;
108
    }
109
110
    /**
111
     * @return Incidence[]
112
     */
113
    public function getIncidences()
114
    {
115
        return $this->incidences;
116
    }
117
118
    /**
119
     * @param $incidences
120
     *
121
     * @return Team
122
     */
123 2
    public function setIncidences($incidences)
124
    {
125 2
        $this->incidences = $incidences;
126 2
        return $this;
127
    }
128
129
    /**
130
     * @return int
131
     */
132 1
    public function getPenaltyGoals(): int
133
    {
134 1
        return $this->penalty_goals;
135
    }
136
137
    /**
138
     * @param int $penalty_goals
139
     *
140
     * @return Team
141
     */
142 2
    public function setPenaltyGoals(int $penalty_goals): Team
143
    {
144 2
        $this->penalty_goals = $penalty_goals;
145 2
        return $this;
146
    }
147
148
    /**
149
     * @return string
150
     */
151 1
    public function getService(): string
152
    {
153 1
        return $this->service;
154
    }
155
156
    /**
157
     * @param string $service
158
     *
159
     * @return Team
160
     */
161 2
    public function setService(string $service): Team
162
    {
163 2
        $this->service = $service;
164 2
        return $this;
165
    }
166
167
    /**
168
     * @return string
169
     */
170 1
    public function getShortName(): string
171
    {
172 1
        return $this->short_name;
173
    }
174
175
    /**
176
     * @param string $short_name
177
     *
178
     * @return Team
179
     */
180 3
    public function setShortName(string $short_name): Team
181
    {
182 3
        $this->short_name = $short_name;
183 3
        return $this;
184
    }
185
    
186
    /**
187
     * @return string
188
     */
189
    public function getCountrySlug(): string
190
    {
191
        return $this->country_slug;
192
    }
193
    
194
    /**
195
     * @param string $country_slug
196
     *
197
     * @return Team
198
     */
199 2
    public function setCountrySlug(string $country_slug): Team
200
    {
201 2
        $this->country_slug = $country_slug;
202 2
        return $this;
203
    }
204
205
}
206