/** * Returns the plural version of the parameter in 'value' * * Expected Params: * value string the string to pluralize * upperCaseFirst string if set to 'true' then the result string will be Capitalized * * @return string */ public function pluralize() { if ($this->getParameter('upperCaseFirst') == 'true') { return ucfirst(StringUtils::pluralize($this->getParameter('value'))); } return StringUtils::pluralize($this->getParameter('value')); }