NoEdgesBuilder   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A fromConstructor() 0 3 1
A fromProperties() 0 3 1
1
<?php declare(strict_types=1);
2
/**
3
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
4
 */
5
6
namespace PhUml\Graphviz\Builders;
7
8
use PhUml\Code\ClassDefinition;
9
use PhUml\Code\Codebase;
10
11
/**
12
 * Null object pattern implementation of `AssociationsBuilder`
13
 *
14
 * This class is used when the user ran the `phuml:diagram` command without the `associations` option.
15
 * Which means that no associations should be discovered
16
 */
17
final class NoEdgesBuilder implements EdgesBuilder
18
{
19 4
    public function fromProperties(ClassDefinition $class, Codebase $codebase): array
20
    {
21 4
        return [];
22
    }
23
24 4
    public function fromConstructor(ClassDefinition $class, Codebase $codebase): array
25
    {
26 4
        return [];
27
    }
28
}
29