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

OsmTypes::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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