-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy pathIStorableObject.class.php
More file actions
64 lines (56 loc) · 1.38 KB
/
IStorableObject.class.php
File metadata and controls
64 lines (56 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
namespace wcf\data;
/**
* Abstract class for all data holder classes.
*
* @author Marcel Werk
* @copyright 2001-2019 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/
interface IStorableObject
{
/**
* Returns the value of a object data variable with the given name or `null` if no
* such data variable exists.
*
* @return mixed
*/
public function __get(string $name);
/**
* Determines if the object data variable with the given name is set and
* is not NULL.
*
* @return bool
*/
public function __isset(string $name);
/**
* Returns the value of all object data variables.
*
* @return mixed[]
*/
public function getData();
/**
* Returns the name of the database table.
*
* @return string
*/
public static function getDatabaseTableName();
/**
* Returns the alias of the database table.
*
* @return string
*/
public static function getDatabaseTableAlias();
/**
* Returns true if database table index is an identity column.
*
* @return bool
*/
public static function getDatabaseTableIndexIsIdentity();
/**
* Returns the name of the database table index.
*
* @return string
*/
public static function getDatabaseTableIndexName();
}