| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 24 | class ValidateInteger extends Validator |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Private |
||
| 28 | * $text the string to validate |
||
| 29 | */ |
||
| 30 | public $text; |
||
| 31 | public $forceentry; |
||
| 32 | //! A constructor. |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Constructs a new ValidateInteger object subclass or Validator |
||
| 36 | * @param string $text |
||
| 37 | * @param bool $forceentry |
||
| 38 | */ |
||
| 39 | public function __construct(string $text, bool $forceentry = false) |
||
| 40 | { |
||
| 41 | $this->text = $text; |
||
| 42 | $this->forceentry = $forceentry; |
||
| 43 | parent::__construct(); |
||
| 44 | } |
||
| 45 | |||
| 46 | //! A manipulator |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Validates a number as integer |
||
| 50 | */ |
||
| 51 | public function validate() |
||
| 55 | } |
||
| 56 | } |
||
| 58 |