Manhattan::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace stojg\recommend\strategy;
4
5
/**
6
 * Computes the Manhattan distance. 
7
 */
8
class Manhattan extends Minkowski
9
{
10
    /**
11
     * Overrides the parent Minkowski to set the r-dimension to 1.
12
     */
13
    public function __construct()
14
    {
15
        parent::__construct(1);
16
    }
17
}
18