. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Module; use Fisharebest\Localization\Locale\LocaleHr; use Fisharebest\Localization\Locale\LocaleInterface; use Illuminate\Database\Query\Builder; /** * Class LanguageCroatian. */ class LanguageCroatian extends AbstractModule implements ModuleLanguageInterface { use ModuleLanguageTrait; /** * @param string $column * @param string $letter * @param Builder $query * * @return void */ public function initialLetterSQL(string $column, string $letter, Builder $query): void { $query->where($column . ' /*! COLLATE utf8_croatian_ci */', 'LIKE', '\\' . $letter . '%'); } /** * @return LocaleInterface */ public function locale(): LocaleInterface { return new LocaleHr(); } }