/
FactoryInterface.php
47 lines (41 loc) · 1.15 KB
/
FactoryInterface.php
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace Concrete\Core\Localization\Translation\Local;
use Concrete\Core\Package\Package;
interface FactoryInterface
{
/**
* Get stats about all the locally available translation files for the core.
*
* @return Stats[] keys are the locale IDs, values are the stats
*/
public function getAvailableCoreStats();
/**
* Get core translations stats for a specific locale ID.
*
* @param string $localeID
*
* @return Stats
*/
public function getCoreStats($localeID);
/**
* Get stats about all the locally available translation files for a package.
*
* @param Package $package
*
* @return Stats[] keys are the locale IDs, values are the stats
*/
public function getAvailablePackageStats(Package $package);
/**
* Get package translations stats for a specific locale ID.
*
* @param Package $package
* @param string $localeID
*
* @return Stats
*/
public function getPackageStats(Package $package, $localeID);
/**
* Clear (eventually) cached data about local translation stats.
*/
public function clearCache();
}