1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Circles - Bring cloud-users closer together. |
4
|
|
|
* |
5
|
|
|
* This file is licensed under the Affero General Public License version 3 or |
6
|
|
|
* later. See the COPYING file. |
7
|
|
|
* |
8
|
|
|
* @author Maxence Lange <[email protected]> |
9
|
|
|
* @copyright 2017 |
10
|
|
|
* @license GNU AGPL version 3 or any later version |
11
|
|
|
* |
12
|
|
|
* This program is free software: you can redistribute it and/or modify |
13
|
|
|
* it under the terms of the GNU Affero General Public License as |
14
|
|
|
* published by the Free Software Foundation, either version 3 of the |
15
|
|
|
* License, or (at your option) any later version. |
16
|
|
|
* |
17
|
|
|
* This program is distributed in the hope that it will be useful, |
18
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
19
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20
|
|
|
* GNU Affero General Public License for more details. |
21
|
|
|
* |
22
|
|
|
* You should have received a copy of the GNU Affero General Public License |
23
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
24
|
|
|
* |
25
|
|
|
*/ |
26
|
|
|
|
27
|
|
|
namespace OCA\Circles\Model; |
28
|
|
|
|
29
|
|
|
class BaseCircle { |
30
|
|
|
|
31
|
|
|
/** @var int */ |
32
|
|
|
private $id; |
33
|
|
|
|
34
|
|
|
/** @var string */ |
35
|
|
|
private $name; |
36
|
|
|
|
37
|
|
|
/** @var Member */ |
38
|
|
|
private $owner; |
39
|
|
|
|
40
|
|
|
/** @var Member */ |
41
|
|
|
private $user; |
42
|
|
|
|
43
|
|
|
/** @var string */ |
44
|
|
|
private $description; |
45
|
|
|
|
46
|
|
|
/** @var int */ |
47
|
|
|
private $type; |
48
|
|
|
|
49
|
|
|
/** @var string */ |
50
|
|
|
private $creation; |
51
|
|
|
|
52
|
|
|
/** @var Member[] */ |
53
|
|
|
private $members; |
54
|
|
|
|
55
|
|
|
/** @var string */ |
56
|
|
|
private $info; |
57
|
|
|
|
58
|
|
|
public function __construct() { |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
|
62
|
|
|
public function setId($id) { |
63
|
|
|
$this->id = $id; |
64
|
|
|
|
65
|
|
|
return $this; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
public function getId() { |
69
|
|
|
return $this->id; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
|
73
|
|
|
public function setName($name) { |
74
|
|
|
$this->name = $name; |
75
|
|
|
|
76
|
|
|
return $this; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function getName() { |
80
|
|
|
return $this->name; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
|
84
|
|
|
public function getOwner() { |
85
|
|
|
return $this->owner; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
public function setOwner($owner) { |
89
|
|
|
$this->owner = $owner; |
90
|
|
|
|
91
|
|
|
return $this; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
|
95
|
|
|
public function getUser() { |
96
|
|
|
return $this->user; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
public function setUser($user) { |
100
|
|
|
$this->user = $user; |
101
|
|
|
|
102
|
|
|
return $this; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
|
106
|
|
|
public function setDescription($description) { |
107
|
|
|
$this->description = $description; |
108
|
|
|
|
109
|
|
|
return $this; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
public function getDescription() { |
113
|
|
|
return $this->description; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
|
117
|
|
|
public function setType($type) { |
118
|
|
|
$this->type = $type; |
119
|
|
|
|
120
|
|
|
return $this; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
public function getType() { |
124
|
|
|
return $this->type; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
|
128
|
|
|
public function setInfo($str) { |
129
|
|
|
$this->info = $str; |
130
|
|
|
|
131
|
|
|
return $this; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
public function getInfo() { |
135
|
|
|
return $this->info; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
|
139
|
|
|
public function setCreation($creation) { |
140
|
|
|
$this->creation = $creation; |
141
|
|
|
|
142
|
|
|
return $this; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
public function getCreation() { |
146
|
|
|
return $this->creation; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
|
150
|
|
|
public function setMembers($members) { |
151
|
|
|
$this->members = $members; |
152
|
|
|
|
153
|
|
|
return $this; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
public function getMembers() { |
157
|
|
|
return $this->members; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
|
161
|
|
|
} |