Completed
Push — master ( 8dfab9...de45ef )
by Tomas Norre
05:22
created

GolfCourse::getCountry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace TNM\GolfCourses\Domain\Model;
3
4
5
/***************************************************************
6
 *
7
 *  Copyright notice
8
 *
9
 *  (c) 2016 Tomas Norre Mikkelsen <[email protected]>
10
 *
11
 *  All rights reserved
12
 *
13
 *  This script is part of the TYPO3 project. The TYPO3 project is
14
 *  free software; you can redistribute it and/or modify
15
 *  it under the terms of the GNU General Public License as published by
16
 *  the Free Software Foundation; either version 3 of the License, or
17
 *  (at your option) any later version.
18
 *
19
 *  The GNU General Public License can be found at
20
 *  http://www.gnu.org/copyleft/gpl.html.
21
 *
22
 *  This script is distributed in the hope that it will be useful,
23
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 *  GNU General Public License for more details.
26
 *
27
 *  This copyright notice MUST APPEAR in all copies of the script!
28
 ***************************************************************/
29
30
/**
31
 * GolfCourse
32
 */
33
class GolfCourse extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
34
{
35
36
    /**
37
     * name
38
     *
39
     * @var string
40
     */
41
    protected $name = '';
42
    
43
    /**
44
     * website
45
     *
46
     * @var string
47
     */
48
    protected $website = '';
49
    
50
    /**
51
     * comment
52
     *
53
     * @var string
54
     */
55
    protected $comment = '';
56
    
57
    /**
58
     * country
59
     *
60
     * @var int
61
     */
62
    protected $country = 0;
63
    
64
    /**
65
     * logo
66
     *
67
     * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
68
     */
69
    protected $logo = null;
70
    
71
    /**
72
     * Returns the name
73
     *
74
     * @return string $name
75
     */
76 1
    public function getName()
77
    {
78 1
        return $this->name;
79
    }
80
    
81
    /**
82
     * Sets the name
83
     *
84
     * @param string $name
85
     * @return void
86
     */
87 1
    public function setName($name)
88
    {
89 1
        $this->name = $name;
90 1
    }
91
    
92
    /**
93
     * Returns the website
94
     *
95
     * @return string $website
96
     */
97 1
    public function getWebsite()
98
    {
99 1
        return $this->website;
100
    }
101
    
102
    /**
103
     * Sets the website
104
     *
105
     * @param string $website
106
     * @return void
107
     */
108 1
    public function setWebsite($website)
109
    {
110 1
        $this->website = $website;
111 1
    }
112
    
113
    /**
114
     * Returns the comment
115
     *
116
     * @return string $comment
117
     */
118 1
    public function getComment()
119
    {
120 1
        return $this->comment;
121
    }
122
    
123
    /**
124
     * Sets the comment
125
     *
126
     * @param string $comment
127
     * @return void
128
     */
129 1
    public function setComment($comment)
130
    {
131 1
        $this->comment = $comment;
132 1
    }
133
    
134
    /**
135
     * Returns the country
136
     *
137
     * @return int $country
138
     */
139 2
    public function getCountry()
140
    {
141 2
        return $this->country;
142
    }
143
    
144
    /**
145
     * Sets the country
146
     *
147
     * @param int $country
148
     * @return void
149
     */
150 1
    public function setCountry($country)
151
    {
152 1
        $this->country = $country;
153 1
    }
154
    
155
    /**
156
     * Returns the logo
157
     *
158
     * @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $logo
159
     */
160 1
    public function getLogo()
161
    {
162 1
        return $this->logo;
163
    }
164
    
165
    /**
166
     * Sets the logo
167
     *
168
     * @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $logo
169
     * @return void
170
     */
171 1
    public function setLogo(\TYPO3\CMS\Extbase\Domain\Model\FileReference $logo)
172
    {
173 1
        $this->logo = $logo;
174 1
    }
175
176
}