diff options
Diffstat (limited to 'vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/Reader/BundleReaderInterface.php')
-rw-r--r-- | vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/Reader/BundleReaderInterface.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/Reader/BundleReaderInterface.php b/vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/Reader/BundleReaderInterface.php new file mode 100644 index 00000000..bc485cd5 --- /dev/null +++ b/vendor/symfony/intl/Symfony/Component/Intl/ResourceBundle/Reader/BundleReaderInterface.php | |||
@@ -0,0 +1,40 @@ | |||
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 | |||
12 | namespace Symfony\Component\Intl\ResourceBundle\Reader; | ||
13 | |||
14 | /** | ||
15 | * Reads resource bundle files. | ||
16 | * | ||
17 | * @author Bernhard Schussek <bschussek@gmail.com> | ||
18 | */ | ||
19 | interface BundleReaderInterface | ||
20 | { | ||
21 | /** | ||
22 | * Reads a resource bundle. | ||
23 | * | ||
24 | * @param string $path The path to the resource bundle. | ||
25 | * @param string $locale The locale to read. | ||
26 | * | ||
27 | * @return mixed Returns an array or {@link \ArrayAccess} instance for | ||
28 | * complex data, a scalar value otherwise. | ||
29 | */ | ||
30 | public function read($path, $locale); | ||
31 | |||
32 | /** | ||
33 | * Reads the available locales of a resource bundle. | ||
34 | * | ||
35 | * @param string $path The path to the resource bundle. | ||
36 | * | ||
37 | * @return string[] A list of supported locale codes. | ||
38 | */ | ||
39 | public function getLocales($path); | ||
40 | } | ||