1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace AutomateWoo\Fields;
defined( 'ABSPATH' ) || exit;
/** * Number field that only allows positive values (>0) * * @class Positive_Number * @since 4.9.4 * @package AutomateWoo\Fields */ class Positive_Number extends Number {
/** * Positive_Number constructor. */ public function __construct() { parent::__construct(); $this->set_min( 1 ); } }
|