Completed
Push — master ( 3c15fb...e76d2b )
by Ivan
02:41
created

BrowserLocale::__construct()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 13
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 4.25

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
ccs 6
cts 8
cp 0.75
rs 9.2
cc 4
eloc 5
nc 4
nop 1
crap 4.25

1 Method

Rating   Name   Duplication   Size   Complexity  
BrowserLocale::getLocales() 0 1 ?
1
<?php
2
3
namespace CodeZero\BrowserLocale;
4
5
interface BrowserLocale
6
{
7
    /**
8
     * Get the most preferred locale.
9
     *
10
     * @return Locale|null
11
     */
12
    public function getLocale();
13
14
    /**
15
     * Get an array of Locale objects in descending order of preference.
16
     *
17
     * If a property filter is specified, a flattened array of locale information,
18
     * containing only the requested property values will be returned instead.
19
     *
20
     * @param string $propertyFilter locale|language|country|weight
21
     *
22
     * @return array
23
     */
24
    public function getLocales($propertyFilter = null);
25
}
26