Completed
Push — development ( c7aaa2...a4c578 )
by Torben
42:54
created

UserRegistrationDemand::getStoragePage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace DERHANSEN\SfEventMgt\Domain\Model\Dto;
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
/**
18
 * UserRegistrationDemand
19
 *
20
 * @author Torben Hansen <[email protected]>
21
 */
22
class UserRegistrationDemand extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23
{
24
    /**
25
     * Display mode
26
     *
27
     * @var string
28
     */
29
    protected $displayMode = 'all';
30
31
    /**
32
     * Storage page
33
     *
34
     * @var string
35
     */
36
    protected $storagePage;
37
38
    /**
39
     * Order field
40
     *
41
     * @var string
42
     */
43
    protected $orderField = '';
44
45
    /**
46
     * Order direction
47
     *
48
     * @var string
49
     */
50
    protected $orderDirection = '';
51
52
    /**
53
     * Current DateTime
54
     *
55
     * @var \DateTime
56
     */
57
    protected $currentDateTime = null;
58
59
    /**
60
     * Frontend user
61
     *
62
     * @var \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
63
     */
64
    protected $user = null;
65
66
    /**
67
     * Returns displayMode
68
     *
69
     * @return string
70
     */
71
    public function getDisplayMode()
72
    {
73
        return $this->displayMode;
74
    }
75
76
    /**
77
     * Sets displaymode
78
     *
79
     * @param string $displayMode
80
     * @return void
81
     */
82
    public function setDisplayMode($displayMode)
83
    {
84
        $this->displayMode = $displayMode;
85
    }
86
87
    /**
88
     * Sets storagePage
89
     *
90
     * @return string
91
     */
92
    public function getStoragePage()
93
    {
94
        return $this->storagePage;
95
    }
96
97
    /**
98
     * Returns storagePage
99
     *
100
     * @param string $storagePage
101
     * @return void
102
     */
103
    public function setStoragePage($storagePage)
104
    {
105
        $this->storagePage = $storagePage;
106
    }
107
108
    /**
109
     * Returns orderField
110
     *
111
     * @return string
112
     */
113
    public function getOrderField()
114
    {
115
        return $this->orderField;
116
    }
117
118
    /**
119
     * Sets orderField
120
     *
121
     * @param string $orderField
122
     * @return void
123
     */
124
    public function setOrderField($orderField)
125
    {
126
        $this->orderField = $orderField;
127
    }
128
129
    /**
130
     * Returns orderDirection
131
     *
132
     * @return string
133
     */
134
    public function getOrderDirection()
135
    {
136
        return $this->orderDirection;
137
    }
138
139
    /**
140
     * Sets orderDirection
141
     *
142
     * @param string $orderDirection
143
     * @return void
144
     */
145
    public function setOrderDirection($orderDirection)
146
    {
147
        $this->orderDirection = $orderDirection;
148
    }
149
    /**
150
     * Sets the current DateTime
151
     *
152
     * @param \DateTime $currentDateTime CurrentDateTime
153
     *
154
     * @return void
155
     */
156
    public function setCurrentDateTime(\DateTime $currentDateTime)
157
    {
158
        $this->currentDateTime = $currentDateTime;
159
    }
160
161
    /**
162
     * Returns the current datetime
163
     *
164
     * @return \DateTime
165
     */
166
    public function getCurrentDateTime()
167
    {
168
        if ($this->currentDateTime != null) {
169
            return $this->currentDateTime;
170
        }
171
        return new \DateTime;
172
    }
173
174
    /**
175
     * Returns the frontend user
176
     *
177
     * @return \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
178
     */
179
    public function getUser()
180
    {
181
        return $this->user;
182
    }
183
184
    /**
185
     * Sets the frontend user
186
     *
187
     * @param \TYPO3\CMS\Extbase\Domain\Model\FrontendUser $user
188
     * @return void
189
     */
190
    public function setUser($user)
191
    {
192
        $this->user = $user;
193
    }
194
}
195