Wheel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A oneMile() 0 3 1
A property() 0 3 1
A name() 0 3 1
1
<?php
2
3
/**
4
 * Dark Tower
5
 */
6
7
namespace Bavix\Geo\Unit\Provider;
8
9
use Bavix\Geo\Unit\Distance;
10
use Bavix\Geo\Unit\Distable;
11
12
class Wheel extends Distable
13
{
14
15
    /**
16
     * @return string
17
     */
18
    public static function property(): string
19
    {
20
        return Distance::PROPERTY_WHEELS;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public static function name(): string
27
    {
28
        return 'wheel';
29
    }
30
31
    /**
32
     * @return float
33
     */
34
    public static function oneMile(): float
35
    {
36
        return 0.59171597633;
37
    }
38
39
}
40