Merge pull request #5979 from WoltLab/fix-outdated-dateutil-usage
[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 * @since 5.2
12 */
13 interface IDecimalsDatabaseTableColumn extends ILengthDatabaseTableColumn
14 {
15 /**
16 * Sets the number of decimals the database table column supports or unsets the previously
17 * set value if `null` is passed and returns this column.
18 *
19 * @return $this
20 */
21 public function decimals(?int $decimals): static;
22
23 /**
24 * Returns the number of decimals the database table column supports or `null` if the number
25 * of decimals has not be specified.
26 */
27 public function getDecimals(): ?int;
28 }