DirectionEntity   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 2
c 2
b 0
f 2
lcom 0
cbo 0
dl 0
loc 24
rs 10
ccs 8
cts 8
cp 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getName() 0 4 1
1
<?php
2
3
namespace OpenTribes\Core\Entity;
4
5
6
class DirectionEntity {
7
    private $name = '';
8
    private $key = '';
9
    private $minDegree = 0.0;
10
    private $maxDegree = 0.0;
11
12 7
    public function __construct($key, $name, $minDegree, $maxDegree)
13
    {
14 7
        $this->key = $key;
15 7
        $this->name = $name;
16 7
        $this->minDegree = $minDegree;
17 7
        $this->maxDegree = $maxDegree;
18 7
    }
19
20
21
    /**
22
     * @return string
23
     */
24 3
    public function getName()
25
    {
26 3
        return $this->name;
27
    }
28
29
}