respect-validation/docs/rules/Countable.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

556 B

Countable

  • Countable()

Validates if the input is countable, in other words, if you're allowed to use count() function on it.

v::countable()->validate([]); // true
v::countable()->validate(new ArrayObject()); // true
v::countable()->validate('string'); // false

Categorization

  • Types

Changelog

Version Description
1.0.0 Created from ArrayVal

See also: