1: <?php
2: /**
3: * PHP version 5
4: * @package generalDriver
5: * @author Christian Schiffler <c.schiffler@cyberspectrum.de>
6: * @author Stefan Heimes <stefan_heimes@hotmail.com>
7: * @author Tristan Lins <tristan.lins@bit3.de>
8: * @copyright The MetaModels team.
9: * @license LGPL.
10: * @filesource
11: */
12:
13: namespace DcGeneral\Data;
14:
15: /**
16: * This interface describes
17: *
18: * @package DcGeneral\Data
19: */
20: interface LanguageInformationInterface
21: {
22: /**
23: * Retrieve the ISO 639 language code.
24: *
25: * @return string
26: */
27: public function getLanguageCode();
28:
29: /**
30: * Retrieve the ISO 3166 country code.
31: *
32: * @return string
33: */
34: public function getCountryCode();
35:
36: /**
37: * Retrieve the RFC 3066 locale string.
38: *
39: * This string is combined as language-code + "_" + country-code.
40: *
41: * If no country code has been set, the language code only will get returned.
42: *
43: * @return mixed
44: */
45: public function getLocale();
46: }
47: