Krumo::plural PHP Méthode

plural() private static méthode

Properly add "S" depending on the number of items static::plural(1,"show") = "show" static::plural(4,"show") = "shows"
private static plural ( $number, $word ) : string
$number integer How many finger(s) am I holding up?
$word string Word to possibly (simply) pluralize
Résultat string
    private static function plural($number, $word)
    {
        if ($number > 1 || $number === 0) {
            return $word . "s";
        } elseif ($number === 1) {
            return $word;
        } else {
            return "???";
        }
    }