Add return type `static` for `@return $this`
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / database / table / column / IAutoIncrementDatabaseTableColumn.class.php
CommitLineData
f6e43f2f 1<?php
a9229942 2
f6e43f2f
MS
3namespace 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>
11 * @package WoltLabSuite\Core\System\Database\Table\Column
12 * @since 5.2
f6e43f2f 13 */
a9229942
TD
14interface IAutoIncrementDatabaseTableColumn
15{
16 /**
17 * Sets if the values of the database table column are auto-increment and returns this column.
18 *
a9229942
TD
19 * @return $this
20 */
a8c47fb1 21 public function autoIncrement(bool $autoIncrement = true): static;
a9229942
TD
22
23 /**
24 * Returns `true` if the values of the database table column are auto-increment.
a9229942 25 */
3f13d793 26 public function isAutoIncremented(): bool;
f6e43f2f 27}