Add return type `static` for `@return $this`
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / database / table / column / IAutoIncrementDatabaseTableColumn.class.php
1 <?php
2
3 namespace wcf\system\database\table\column;
4
5 /**
6 * Every database table column whose values can be auto-incremented must implement this interface.
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
13 */
14 interface IAutoIncrementDatabaseTableColumn
15 {
16 /**
17 * Sets if the values of the database table column are auto-increment and returns this column.
18 *
19 * @return $this
20 */
21 public function autoIncrement(bool $autoIncrement = true): static;
22
23 /**
24 * Returns `true` if the values of the database table column are auto-increment.
25 */
26 public function isAutoIncremented(): bool;
27 }