| 1 | <?php |
||
| 12 | class UnicodeComparator implements ComparatorInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var \Collator |
||
| 16 | */ |
||
| 17 | private $collator; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $locale |
||
| 21 | */ |
||
| 22 | 38 | function __construct($locale = null) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Get locale used by collator |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 2 | public function getLocale() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 28 | public function compare($a, $b) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 9 | public function supports($value) |
|
| 58 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.