3 namespace wcf\system\form\builder\field
;
6 * Represents a form field that supports setting the maximum of the field value.
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\Form\Builder\Field
14 interface IMaximumFormField
extends IFormField
17 * Returns the maximum of the values of this field or `null` if no maximum
22 public function getMaximum();
25 * Sets the maximum of the values of this field. If `null` is passed, the
28 * @param null|number $maximum maximum field value
29 * @return static this field
31 * @throws \InvalidArgumentException if the given maximum is no number or otherwise invalid
33 public function maximum($maximum = null);