Add return type `static` for `@return $this`
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / database / table / column / IDecimalsDatabaseTableColumn.class.php
1 <?php
2
3 namespace wcf\system\database\table\column;
4
5 /**
6 * Every database table column whose values supports decimals 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 IDecimalsDatabaseTableColumn extends ILengthDatabaseTableColumn
15 {
16 /**
17 * Sets the number of decimals the database table column supports or unsets the previously
18 * set value if `null` is passed and returns this column.
19 *
20 * @return $this
21 */
22 public function decimals(?int $decimals): static;
23
24 /**
25 * Returns the number of decimals the database table column supports or `null` if the number
26 * of decimals has not be specified.
27 */
28 public function getDecimals(): ?int;
29 }