mediawiki.api: Adopt async-await and assert.rejects() in various tests
[mediawiki.git] / includes / libs / rdbms / field / Field.php
blob108326fe8075137cb2b3515db8a9755dd7599264
1 <?php
3 namespace Wikimedia\Rdbms;
5 /**
6 * Base for all database-specific classes representing information about database fields
7 * @ingroup Database
8 */
9 interface Field {
10 /**
11 * Field name
12 * @return string
14 public function name();
16 /**
17 * Name of table this field belongs to
18 * @return string
20 public function tableName();
22 /**
23 * Database type
24 * @return string
26 public function type();
28 /**
29 * Whether this field can store NULL values
30 * @return bool
32 public function isNullable();