Passed
Push — master ( 6c661c...e8275e )
by Sebastian
04:14
created

Mailcode_Translator_Syntax_ApacheVelocity_Mono   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A translate() 0 6 1
1
<?php
2
/**
3
 * File containing the {@see \Mailcode\Mailcode_Translator_Syntax_ApacheVelocity_Mono} class.
4
 *
5
 * @package Mailcode
6
 * @subpackage Translator
7
 * @see \Mailcode\Mailcode_Translator_Syntax_ApacheVelocity_Mono
8
 */
9
10
declare(strict_types=1);
11
12
namespace Mailcode;
13
14
/**
15
 * Translates the "Mono" command to Apache Velocity.
16
 *
17
 * @package Mailcode
18
 * @subpackage Translator
19
 * @author Sebastian Mordziol <[email protected]>
20
 *
21
 * @see Mailcode_Commands_Command_Mono
22
 */
23
class Mailcode_Translator_Syntax_ApacheVelocity_Mono extends Mailcode_Translator_Syntax_ApacheVelocity implements Mailcode_Translator_Command_Mono
24
{
25
    public function translate(Mailcode_Commands_Command_Mono $command): string
26
    {
27
        // We do not want the command to be shown in the resulting
28
        // translated text. The preprocessor must be used if these
29
        // commands are to be transformed in the document.
30
        return '';
31
    }
32
}
33