1 | <?php |
||
27 | class Database extends Model |
||
28 | { |
||
29 | protected $propNameMap = [ |
||
30 | 'records_count' => 'recordsCount', |
||
31 | 'database_id' => 'databaseId' |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * The number of entries in the database. |
||
36 | * |
||
37 | * @var int |
||
38 | */ |
||
39 | protected $recordsCount; |
||
40 | |||
41 | /** |
||
42 | * Date of creation database. |
||
43 | * |
||
44 | * @var int |
||
45 | */ |
||
46 | protected $created; |
||
47 | |||
48 | /** |
||
49 | * Date of last modification. |
||
50 | * |
||
51 | * @var int |
||
52 | */ |
||
53 | protected $modified; |
||
54 | |||
55 | /** |
||
56 | * ID of the database. |
||
57 | * |
||
58 | * @var string |
||
59 | */ |
||
60 | protected $databaseId; |
||
61 | |||
62 | /** |
||
63 | * Description of the database. |
||
64 | * |
||
65 | * @var string |
||
66 | */ |
||
67 | protected $title; |
||
68 | |||
69 | /** |
||
70 | * Number of the current revision. |
||
71 | * |
||
72 | * @var integer |
||
73 | */ |
||
74 | protected $revision; |
||
75 | |||
76 | /** |
||
77 | * Database Size in bytes. |
||
78 | * |
||
79 | * @var integer |
||
80 | */ |
||
81 | protected $size; |
||
82 | |||
83 | /** |
||
84 | * Database context. |
||
85 | * |
||
86 | * @var string |
||
87 | */ |
||
88 | protected $context; |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | 4 | public function getTitle() |
|
97 | |||
98 | /** |
||
99 | * @param string $title |
||
100 | * |
||
101 | * @return $this |
||
102 | */ |
||
103 | 2 | public function setTitle($title) |
|
108 | |||
109 | /** |
||
110 | * @return int |
||
111 | */ |
||
112 | 5 | public function getSize() |
|
116 | |||
117 | /** |
||
118 | * @param int $size |
||
119 | * |
||
120 | * @return $this |
||
121 | */ |
||
122 | 2 | public function setSize($size) |
|
127 | |||
128 | /** |
||
129 | * @return int |
||
130 | */ |
||
131 | 5 | public function getRevision() |
|
135 | |||
136 | /** |
||
137 | * @param int $revision |
||
138 | * |
||
139 | * @return $this |
||
140 | */ |
||
141 | 2 | public function setRevision($revision) |
|
146 | |||
147 | /** |
||
148 | * @return int |
||
149 | */ |
||
150 | 5 | public function getRecordsCount() |
|
154 | |||
155 | /** |
||
156 | * @param int $recordsCount |
||
157 | * |
||
158 | * @return $this |
||
159 | */ |
||
160 | 2 | public function setRecordsCount($recordsCount) |
|
165 | |||
166 | /** |
||
167 | * @return int |
||
168 | */ |
||
169 | 4 | public function getModified() |
|
173 | |||
174 | /** |
||
175 | * @param int $modified |
||
176 | * |
||
177 | * @return $this |
||
178 | */ |
||
179 | 2 | public function setModified($modified) |
|
184 | |||
185 | /** |
||
186 | * @return string |
||
187 | */ |
||
188 | 4 | public function getDatabaseId() |
|
192 | |||
193 | /** |
||
194 | * @param string $databaseId |
||
195 | * |
||
196 | * @return $this |
||
197 | */ |
||
198 | 1 | public function setDatabaseId($databaseId) |
|
203 | |||
204 | /** |
||
205 | * @return int |
||
206 | */ |
||
207 | 4 | public function getCreated() |
|
211 | |||
212 | /** |
||
213 | * @param int $created |
||
214 | * |
||
215 | * @return $this |
||
216 | */ |
||
217 | 2 | public function setCreated($created) |
|
222 | |||
223 | /** |
||
224 | * @return string |
||
225 | */ |
||
226 | 4 | public function getContext() |
|
230 | |||
231 | /** |
||
232 | * @param string $context |
||
233 | * |
||
234 | * @return $this |
||
235 | */ |
||
236 | 6 | public function setContext($context) |
|
241 | } |
||
242 |