PrintLine   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 15
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A id() 0 4 1
A run() 0 7 1
1
<?php
2
namespace Desmond\functions\core;
3
use Desmond\functions\DesmondFunction;
4
use Desmond\data_types\VoidType;
5
6
class PrintLine extends DesmondFunction
7
{
8 334
    public function id()
9
    {
10 334
        return 'print-line';
11
    }
12
13 1
    public function run(array $strings)
14
    {
15 1
        $printer = new DPrint();
16 1
        $printer->run($strings);
17 1
        print("\n");
18 1
        return new VoidType();
19
    }
20
}
21