com\setasign\SetaFramework\View\Helper

Noun Class Noun

File: /SetaFramework/src/View/Helper/Noun.php

Helps to get the right number of a noun for the count of something

Class hierarchy

Summary

Methods

__invoke()

public Noun::__invoke (
\Countable|array|int|float|string $count,
string $singular,
string $plural
): string

Returns a noun in singular or plural in condition of the given count

Parameters
$count : \Countable|array|int|float|string
 
$singular : string
 
$plural : string

The plural word. %d can be used as a placeholder for the count.