1<?php
2
3namespace Wikimedia\Rdbms;
4
5/**
6 * Base for all database-specific classes representing information about database fields
7 * @ingroup Database
8 */
9interface Field {
10	/**
11	 * Field name
12	 * @return string
13	 */
14	public function name();
15
16	/**
17	 * Name of table this field belongs to
18	 * @return string
19	 */
20	public function tableName();
21
22	/**
23	 * Database type
24	 * @return string
25	 */
26	public function type();
27
28	/**
29	 * Whether this field can store NULL values
30	 * @return bool
31	 */
32	public function isNullable();
33}
34
35/**
36 * @deprecated since 1.29
37 */
38class_alias( Field::class, 'Field' );
39