1
|
|
|
<?php |
2
|
|
|
namespace TNM\GolfCourses\Domain\Model; |
3
|
|
|
|
4
|
|
|
/*************************************************************** |
5
|
|
|
* Copyright notice |
6
|
|
|
* |
7
|
|
|
* (c) 2016 Tomas Norre Mikkelsen <[email protected]> |
8
|
|
|
* |
9
|
|
|
* All rights reserved |
10
|
|
|
* |
11
|
|
|
* This script is part of the TYPO3 project. The TYPO3 project is |
12
|
|
|
* free software; you can redistribute it and/or modify |
13
|
|
|
* it under the terms of the GNU General Public License as published by |
14
|
|
|
* the Free Software Foundation; either version 3 of the License, or |
15
|
|
|
* (at your option) any later version. |
16
|
|
|
* |
17
|
|
|
* The GNU General Public License can be found at |
18
|
|
|
* http://www.gnu.org/copyleft/gpl.html. |
19
|
|
|
* |
20
|
|
|
* This script is distributed in the hope that it will be useful, |
21
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
22
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
23
|
|
|
* GNU General Public License for more details. |
24
|
|
|
* |
25
|
|
|
* This copyright notice MUST APPEAR in all copies of the script! |
26
|
|
|
***************************************************************/ |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* Class GolfRound |
30
|
|
|
* |
31
|
|
|
*/ |
32
|
|
|
class GolfRound extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
33
|
|
|
{ |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var int |
37
|
|
|
*/ |
38
|
|
|
protected $date; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var int |
42
|
|
|
*/ |
43
|
|
|
protected $course; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var int |
47
|
|
|
*/ |
48
|
|
|
protected $par; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var int |
52
|
|
|
*/ |
53
|
|
|
protected $strokes; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
protected $score; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var bool |
62
|
|
|
*/ |
63
|
|
|
protected $regulation; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @return int |
67
|
|
|
*/ |
68
|
|
|
public function getDate() |
69
|
|
|
{ |
70
|
|
|
return $this->date; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @param int $date |
75
|
|
|
*/ |
76
|
|
|
public function setDate($date) |
77
|
|
|
{ |
78
|
|
|
$this->date = $date; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @return int |
83
|
|
|
*/ |
84
|
|
|
public function getCourse() |
85
|
|
|
{ |
86
|
|
|
return $this->course; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @param int $course |
91
|
|
|
*/ |
92
|
|
|
public function setCourse($course) |
93
|
|
|
{ |
94
|
|
|
$this->course = $course; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @return int |
99
|
|
|
*/ |
100
|
|
|
public function getPar() |
101
|
|
|
{ |
102
|
|
|
return $this->par; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @param int $par |
107
|
|
|
*/ |
108
|
|
|
public function setPar($par) |
109
|
|
|
{ |
110
|
|
|
$this->par = $par; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @return int |
115
|
|
|
*/ |
116
|
|
|
public function getStrokes() |
117
|
|
|
{ |
118
|
|
|
return $this->strokes; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @param int $strokes |
123
|
|
|
*/ |
124
|
|
|
public function setStrokes($strokes) |
125
|
|
|
{ |
126
|
|
|
$this->strokes = $strokes; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @return string |
131
|
|
|
*/ |
132
|
|
|
public function getScore() |
133
|
|
|
{ |
134
|
|
|
return $this->score; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @param string $score |
139
|
|
|
*/ |
140
|
|
|
public function setScore($score) |
141
|
|
|
{ |
142
|
|
|
$this->score = $score; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @return bool |
147
|
|
|
*/ |
148
|
|
|
public function isRegulation() |
149
|
|
|
{ |
150
|
|
|
return $this->regulation; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @param bool $regulation |
155
|
|
|
*/ |
156
|
|
|
public function setRegulation($regulation) |
157
|
|
|
{ |
158
|
|
|
$this->regulation = $regulation; |
159
|
|
|
} |
160
|
|
|
} |
161
|
|
|
|