[TASK] Set extension version and dependencies to 7.2
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Classes / Domain / Model / Demand.php
1 <?php
2 namespace TYPO3\CMS\Beuser\Domain\Model;
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 * Demand filter for listings
19 *
20 * @author Felix Kopp <felix-source@phorax.com>
21 */
22 class Demand extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
23
24 /**
25 * @var int
26 */
27 const ALL = 0;
28 /**
29 * @var int
30 */
31 const USERTYPE_ADMINONLY = 1;
32 /**
33 * @var int
34 */
35 const USERTYPE_USERONLY = 2;
36 /**
37 * @var int
38 */
39 const STATUS_ACTIVE = 1;
40 /**
41 * @var int
42 */
43 const STATUS_INACTIVE = 2;
44 /**
45 * @var int
46 */
47 const LOGIN_SOME = 1;
48 /**
49 * @var int
50 */
51 const LOGIN_NONE = 2;
52 /**
53 * @var string
54 */
55 protected $userName = '';
56
57 /**
58 * @var int
59 */
60 protected $userType = self::ALL;
61
62 /**
63 * @var int
64 */
65 protected $status = self::ALL;
66
67 /**
68 * @var int
69 */
70 protected $logins = 0;
71
72 /**
73 * @var \TYPO3\CMS\Beuser\Domain\Model\BackendUserGroup
74 */
75 protected $backendUserGroup;
76
77 /**
78 * @param string $userName
79 * @return void
80 */
81 public function setUserName($userName) {
82 $this->userName = $userName;
83 }
84
85 /**
86 * @return string
87 */
88 public function getUserName() {
89 return $this->userName;
90 }
91
92 /**
93 * @param int $userType
94 * @return void
95 */
96 public function setUserType($userType) {
97 $this->userType = $userType;
98 }
99
100 /**
101 * @return int
102 */
103 public function getUserType() {
104 return $this->userType;
105 }
106
107 /**
108 * @param int $status
109 * @return void
110 */
111 public function setStatus($status) {
112 $this->status = $status;
113 }
114
115 /**
116 * @return int
117 */
118 public function getStatus() {
119 return $this->status;
120 }
121
122 /**
123 * @param int $logins
124 * @return void
125 */
126 public function setLogins($logins) {
127 $this->logins = $logins;
128 }
129
130 /**
131 * @return int
132 */
133 public function getLogins() {
134 return $this->logins;
135 }
136
137 /**
138 * @param BackendUserGroup $backendUserGroup
139 */
140 public function setBackendUserGroup($backendUserGroup) {
141 $this->backendUserGroup = $backendUserGroup;
142 }
143
144 /**
145 * @return BackendUserGroup
146 */
147 public function getBackendUserGroup() {
148 return $this->backendUserGroup;
149 }
150
151 }