Meter   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 25
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A property() 0 3 1
A oneMile() 0 3 1
A name() 0 3 1
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