Manhattan   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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