AudioDidact\GlobalFunctions::pluralize
Returns the correct plural or singular form of the given word
Signature
public function pluralize(String
$word,
int
$num )
Parameters
$word
—
object
- singular form of the word
$num
—
int
- number of things the word is referring to
Returns
- string
- correct form of the given word for the input number
Test Coverage
Information
- Coverage: 13/13 Lines (100%)
- Tests: 1
- Passed: 1 (100%)
Tests
- [ PASSED ] — UtilitiesTest::testPluralize