forked from ICanBoogie/CLDR
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLocalizable.php
More file actions
32 lines (29 loc) · 736 Bytes
/
Copy pathLocalizable.php
File metadata and controls
32 lines (29 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/*
* This file is part of the ICanBoogie package.
*
* (c) Olivier Laviale <olivier.laviale@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ICanBoogie\CLDR;
/**
* An interface for classes whose instances can be localized.
*
* @template TSource of object
* @template TLocalized of LocalizedObject
*/
interface Localizable
{
/**
* Localize the source object.
*
* @param TSource $source
* @param Locale $locale
* @param array<string, mixed> $options
*
* @return LocalizedObject<TLocalized>
*/
static public function localize(object $source, Locale $locale, array $options = []): LocalizedObject;
}