InflectorInterface.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace Matomo\Dependencies\Symfony\Component\String\Inflector; |
| 12 | |
| 13 | interface InflectorInterface |
| 14 | { |
| 15 | /** |
| 16 | * Returns the singular forms of a string. |
| 17 | * |
| 18 | * If the method can't determine the form with certainty, several possible singulars are returned. |
| 19 | * |
| 20 | * @return string[] |
| 21 | */ |
| 22 | public function singularize(string $plural) : array; |
| 23 | /** |
| 24 | * Returns the plural forms of a string. |
| 25 | * |
| 26 | * If the method can't determine the form with certainty, several possible plurals are returned. |
| 27 | * |
| 28 | * @return string[] |
| 29 | */ |
| 30 | public function pluralize(string $singular) : array; |
| 31 | } |
| 32 |