Test Failed
Pull Request — master (#11)
by
unknown
01:58
created

OsmTypes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of PHP Nominatim.
7
 * (c) Maxime Hélias <[email protected]>
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace maxh\Nominatim\Consts;
13
14
/**
15
 * Constants for osm types.
16
 *
17
 * Class OsmTypes
18
 */
19
class OsmTypes
20
{
21
    public const NODE = 'N';
22
    public const WAY = 'W';
23
    public const RELATIVE = 'R';
24
25
    /**
26
     * All Osm Types.
27
     */
28
    public static function all(): array
29
    {
30
        return [self::NODE, self::WAY, self::RELATIVE];
31
    }
32
}
33