data)) $valid_integer = true; if(!$valid_integer) $this->error = 'Invalid number'; return $valid_integer; } }