Eno\Loaders ยป number

number() โ†’ int
numberItems() โ†’ array
numberList() โ†’ array

An alias for the integer loader.

enogood: -13
bad: 0.3
php$document = Parser::parse($input);

$document->number('good');  // returns -13

$document->number('bad');
  // throws a ValidationError: 'bad' must contain an integer, for instance '42' or '-21'.