Passed
Push — master ( d09870...716959 )
by Luis
02:38
created

DotProcessor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
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 name() 0 3 1
A command() 0 3 1
1
<?php
2
/**
3
 * PHP version 7.1
4
 *
5
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
6
 */
7
8
namespace PhUml\Processors;
9
10
/**
11
 * It creates a `png` class diagram using the `dot` command
12
 */
13
class DotProcessor extends ImageProcessor
14
{
15 12
    public function command(): string
16
    {
17 12
        return 'dot';
18
    }
19
20 6
    public function name(): string
21
    {
22 6
        return 'Dot';
23
    }
24
}
25