Completed
Push — master ( 8358ba...6fe1b8 )
by Tomas Norre
14:45
created

GolfRound::getDate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
 * @package TNM\GolfCourses\Domain\Model
32
 */
33
class GolfRound extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
34
{
35
36
    /**
37
     * @var int
38
     */
39
    protected $date;
40
41
    /**
42
     * @var GolfCourse
43
     */
44
    protected $course;
45
46
    /**
47
     * @var int
48
     */
49
    protected $par;
50
51
    /**
52
     * @var int
53
     */
54
    protected $strokes;
55
56
    /**
57
     * @return int
58
     */
59
    public function getDate()
60
    {
61
        return $this->date;
62
    }
63
64
    /**
65
     * @param int $date
66
     */
67
    public function setDate($date)
68
    {
69
        $this->date = $date;
70
    }
71
72
    /**
73
     * @return GolfCourse
74
     */
75
    public function getCourse()
76
    {
77
        return $this->course;
78
    }
79
80
    /**
81
     * @param GolfCourse $course
82
     */
83
    public function setCourse($course)
84
    {
85
        $this->course = $course;
86
    }
87
88
    /**
89
     * @return int
90
     */
91
    public function getPar()
92
    {
93
        return $this->par;
94
    }
95
96
    /**
97
     * @param int $par
98
     */
99
    public function setPar($par)
100
    {
101
        $this->par = $par;
102
    }
103
104
    /**
105
     * @return int
106
     */
107
    public function getStrokes()
108
    {
109
        return $this->strokes;
110
    }
111
112
    /**
113
     * @param int $strokes
114
     */
115
    public function setStrokes($strokes)
116
    {
117
        $this->strokes = $strokes;
118
    }
119
}