Passed
Push — master ( ba6cbc...6f6e1e )
by Mauro
01:53
created

Team::setService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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 int
25
     */
26
    public $goals;
27
28
    /**
29
     * @var int
30
     */
31
    public $penalty_goals;
32
33
    /**
34
     * @var string
35
     */
36
    public $service;
37
38
    /**
39
     * @var string
40
     */
41
    public $short_name;
42
43
    /**
44
     * @return int
45
     */
46
    public function getId(): int
47
    {
48
        return $this->id;
49
    }
50
51
    /**
52
     * @param int $id
53
     *
54
     * @return Team
55
     */
56
    public function setId(int $id): Team
57
    {
58
        $this->id = $id;
59
        return $this;
60
    }
61
62
    /**
63
     * @return int
64
     */
65
    public function getCountryId(): int
66
    {
67
        return $this->country_id;
68
    }
69
70
    /**
71
     * @param int $country_id
72
     *
73
     * @return Team
74
     */
75
    public function setCountryId(int $country_id): Team
76
    {
77
        $this->country_id = $country_id;
78
        return $this;
79
    }
80
81
    /**
82
     * @return int
83
     */
84
    public function getGoals(): int
85
    {
86
        return $this->goals;
87
    }
88
89
    /**
90
     * @param int $goals
91
     *
92
     * @return Team
93
     */
94
    public function setGoals(int $goals): Team
95
    {
96
        $this->goals = $goals;
97
        return $this;
98
    }
99
100
    /**
101
     * @return int
102
     */
103
    public function getPenaltyGoals(): int
104
    {
105
        return $this->penalty_goals;
106
    }
107
108
    /**
109
     * @param int $penalty_goals
110
     *
111
     * @return Team
112
     */
113
    public function setPenaltyGoals(int $penalty_goals): Team
114
    {
115
        $this->penalty_goals = $penalty_goals;
116
        return $this;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function getService(): string
123
    {
124
        return $this->service;
125
    }
126
127
    /**
128
     * @param string $service
129
     *
130
     * @return Team
131
     */
132
    public function setService(string $service): Team
133
    {
134
        $this->service = $service;
135
        return $this;
136
    }
137
138
    /**
139
     * @return string
140
     */
141
    public function getShortName(): string
142
    {
143
        return $this->short_name;
144
    }
145
146
    /**
147
     * @param string $short_name
148
     *
149
     * @return Team
150
     */
151
    public function setShortName(string $short_name): Team
152
    {
153
        $this->short_name = $short_name;
154
        return $this;
155
    }
156
157
}
158