Documentation

Plural extends AbstractExtension
in package

Table of Contents

essify()  : string
Add an s if not 1
getFunctions()  : array<, mixed>
Returns the Twing functions this extension adds
getName()  : string
Returns the name of this extension
makePlural()  : string
Do complex making plural.

Methods

essify()

Add an s if not 1

public essify(int $count, string $word) : string
Parameters
$count : int
$word : string
Return values
string

getFunctions()

Returns the Twing functions this extension adds

public getFunctions() : array<, mixed>

Required by Twig

Tags
psalm-suppress

LessSpecificImplementedReturnType

Return values
array<, mixed>

getName()

Returns the name of this extension

public getName() : string

Required by Twig

Tags
psalm-suppress

PossiblyUnusedMethod

Return values
string

makePlural()

Do complex making plural.

public makePlural(int $count, string $one, string $some[, string|null $none = NULL ]) : string
Parameters
$count : int

The number

$one : string

The singular case

$some : string

The not singular case

$none : string|null = NULL

Special case for 0

Return values
string

Search results