| 1 | <?php |
||
| 18 | class IntegerField extends AbstractField |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Initializes the IntegerField. |
||
| 22 | * |
||
| 23 | * @param int $value |
||
| 24 | */ |
||
| 25 | public function __construct($value) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Returns the value of this field. |
||
| 32 | * |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | public function getValue() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Sets the value of the field. |
||
| 42 | * |
||
| 43 | * @param int $value |
||
| 44 | * |
||
| 45 | * @throws \InvalidArgumentException if the value is not an integer |
||
| 46 | */ |
||
| 47 | public function setValue($value) |
||
| 51 | } |
||
| 52 |