Debian Codegraph @

vendor/symfony/string/Slugger/SluggerInterface.php

raw
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\String\Slugger;
13
14 use Symfony\Component\String\AbstractUnicodeString;
15
16 /**
17 * Creates a URL-friendly slug from a given string.
18 *
19 * @author Titouan Galopin <[email protected]>
20 */
21 interface SluggerInterface
22 {
23 /**
24 * Creates a slug for the given string and locale, using appropriate transliteration when needed.
25 */
26 public function slug(string $string, string $separator = '-', ?string $locale = null): AbstractUnicodeString;
27 }