Passed
Push — master ( 1c67eb...daf615 )
by Sebastian
02:12
created

Mailcode_Printer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A command2string() 0 7 1
1
<?php
2
/**
3
 * File containing the {@see Mailcode_Renderer} class.
4
 *
5
 * @package Mailcode
6
 * @subpackage Utilities
7
 * @see Mailcode_Renderer
8
 */
9
10
declare(strict_types=1);
11
12
namespace Mailcode;
13
14
/**
15
 * Used to easily create commands and echo them to standard output.
16
 *
17
 * @package Mailcode
18
 * @subpackage Utilities
19
 * @author Sebastian Mordziol <[email protected]>
20
 */
21
class Mailcode_Printer extends Mailcode_Renderer
22
{
23
    protected function command2string(Mailcode_Commands_Command $command) : string
24
    {
25
        $string = parent::command2string($command);
26
        
27
        echo $string;
28
        
29
        return $string;
30
    }
31
}
32