interface Countable (View source)

Classes implementing Countable can be used with the count function.

Methods

int<0, max>
count()

Count elements of an object

Details

int<0, max> count()

Count elements of an object

Return Value

int<0, max>

The custom count as an integer.

The return value is cast to an integer.