Conditions | 4 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function translate(Mailcode_Commands_Command_ElseIf $command): string |
||
24 | { |
||
25 | if($command instanceof Mailcode_Commands_Command_ElseIf_Command) |
||
26 | { |
||
27 | return $this->translateCommand($command); |
||
28 | } |
||
29 | |||
30 | if($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
||
31 | { |
||
32 | return $this->translateVariable($command); |
||
33 | } |
||
34 | |||
35 | if($command instanceof Mailcode_Commands_Command_ElseIf_Contains) |
||
36 | { |
||
37 | return $this->translateContains($command); |
||
38 | } |
||
39 | |||
40 | return ''; |
||
41 | } |
||
84 |