Commit | Line | Data |
---|---|---|
f6e43f2f | 1 | <?php |
a9229942 | 2 | |
f6e43f2f MS |
3 | namespace wcf\system\database\table\column; |
4 | ||
5 | /** | |
6 | * Every database table column whose values can be auto-incremented must implement this interface. | |
a9229942 TD |
7 | * |
8 | * @author Matthias Schmidt | |
9 | * @copyright 2001-2019 WoltLab GmbH | |
10 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
a9229942 | 11 | * @since 5.2 |
f6e43f2f | 12 | */ |
a9229942 TD |
13 | interface IAutoIncrementDatabaseTableColumn |
14 | { | |
15 | /** | |
16 | * Sets if the values of the database table column are auto-increment and returns this column. | |
17 | * | |
a9229942 TD |
18 | * @return $this |
19 | */ | |
a8c47fb1 | 20 | public function autoIncrement(bool $autoIncrement = true): static; |
a9229942 TD |
21 | |
22 | /** | |
23 | * Returns `true` if the values of the database table column are auto-increment. | |
a9229942 | 24 | */ |
3f13d793 | 25 | public function isAutoIncremented(): bool; |
f6e43f2f | 26 | } |