public function readInt() { $value = $this->extract(); try { return Integer::parseInt($value); } catch (NumberFormatException $e) { throw $this->getNumberFormatException($value, 'int', Integer::MIN_VALUE, Integer::MAX_VALUE); } }