original_string: protected function _normalizeInt($value)
      {
          $origValue = $value;
          if ($value instanceof Stringable) {
              $value = $this->_normalizeString($value);
          }
  
          if (!is_numeric($value)) {
              throw $this->_createInvalidArgumentException($this->__('Not a number'), null, null, $origValue);
          }
  
          $value += 0;
  
          if (fmod($value, 1) !== 0.00) {
              throw $this->_createInvalidArgumentException($this->__('Not a whole number'), null, null, $origValue);
          }
  
          $value = (int) $value;
  
          return $value;
      }
code: protected function _normalizeInt($value)
      {
          $origValue = $value;
          if ($value instanceof Stringable) {
              $value = $this->_normalizeString($value);
          }
  
          if (!is_numeric($value)) {
              throw $this->_createInvalidArgumentException($this->__('Not a number'), null, null, $origValue);
          }
  
          $value += 0;
  
          if (fmod($value, 1) !== 0.00) {
              throw $this->_createInvalidArgumentException($this->__('Not a whole number'), null, null, $origValue);
          }
  
          $value = (int) $value;
  
          return $value;
      }
code_tokens: protected function _normalizeInt ( $ value ) { $ origValue = $ value ; if ( $ value instanceof Stringable ) { $ value = $ this -> _normalizeString ( $ value ) ; } if ( ! is_numeric ( $ value ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Not a number' ) , null , null , $ origValue ) ; } $ value += 0 ; if ( fmod ( $ value , 1 ) !== 0.00 ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Not a whole number' ) , null , null , $ origValue ) ; } $ value = ( int ) $ value ; return $ value ; }
docstring: Normalizes a value into an integer.
  
  The value must be a whole number, or a string representing such a number,
  or an object representing such a string.
  
  @since [*next-version*]
  
  @param string|Stringable|float|int $value The value to normalize.
  
  @throws InvalidArgumentException If value cannot be normalized.
  
  @return int The normalized value.
docstring_tokens: Normalizes a value into an integer .