| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class IntegerParameter extends Parameter |
||
| 25 | { |
||
| 26 | |||
| 27 | // |
||
| 28 | // STATIC FUNCTIONS |
||
| 29 | // |
||
| 30 | |||
| 31 | // |
||
| 32 | // PUBLIC FUNCTIONS |
||
| 33 | // |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Returns one of the ARGH_TYPE_INT |
||
| 37 | * |
||
| 38 | * @since 1.0.0 |
||
| 39 | * |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | public function getParameterType(): int |
||
| 43 | { |
||
| 44 | return Parameter::ARGH_TYPE_INT; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Sets the int value of this Parameter. |
||
| 49 | * |
||
| 50 | * Casts all values to int. |
||
| 51 | * |
||
| 52 | * @since 1.0.0 |
||
| 53 | * |
||
| 54 | * @return int |
||
| 55 | */ |
||
| 56 | public function setValue($value) |
||
| 64 | } |
||
| 65 | |||
| 67 |