Meter::name()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Bavix\Geo\Unit\Provider;
4
5
use Bavix\Geo\Unit\Distance;
6
7
class Meter extends Kilometer
8
{
9
10
    /**
11
     * @return string
12
     */
13
    public static function property(): string
14
    {
15
        return Distance::PROPERTY_METERS;
16
    }
17
18
    /**
19
     * @return string
20
     */
21
    public static function name(): string
22
    {
23
        return 'meter';
24
    }
25
26
    /**
27
     * @return float
28
     */
29
    public static function oneMile(): float
30
    {
31
        return parent::oneMile() * 1000;
32
    }
33
34
}
35