CoreFiles by mySites.guru
InflectorInterface.php33 lines, 905 bytes, from Joomla_4.1.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.1.0-beta1
md5
034166448b963c086f8888136f8051cb
sha1
f5fffa431af285c3eb7784e77d12e495e2de0fbf
sha256
ae3091b4aa02181be78474543f7d8b2cf1a55aeeb837e0b3ab69c94d460987f4
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\String\Inflector;

interface InflectorInterface
{
    /**
     * Returns the singular forms of a string.
     *
     * If the method can't determine the form with certainty, several possible singulars are returned.
     *
     * @return string[] An array of possible singular forms
     */
    public function singularize(string $plural): array;

    /**
     * Returns the plural forms of a string.
     *
     * If the method can't determine the form with certainty, several possible plurals are returned.
     *
     * @return string[] An array of possible plural forms
     */
    public function pluralize(string $singular): array;
}

The same content is in 31 releases, Joomla 4.0.0-beta4 to 4.1.0-beta2. See them all, or every version of this file.