\Symfony\Component\PropertyAccessStringUtil

Creates singulars from plurals.

Summary

Methods
Properties
Constants
singularify()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
$pluralMap
N/A

Properties

$pluralMap

$pluralMap : 

Map english plural to singular suffixes.

Type

Methods

singularify()

singularify(string  $plural) : string|array

Returns the singular form of a word.

If the method can't determine the form with certainty, an array of the possible singulars is returned.

Parameters

string $plural

A word in plural form

Returns

string|array —

The singular form or an array of possible singular forms

__construct()

__construct() 

This class should not be instantiated.