| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function translate(Mailcode_Commands_Command_ShowPhone $command): string |
||
| 27 | { |
||
| 28 | $template = "phone.e164(%s, '%s')"; |
||
| 29 | |||
| 30 | $varName = undollarize($command->getVariableName()); |
||
| 31 | $format = $command->getSourceFormat(); |
||
| 32 | |||
| 33 | $statement = sprintf( |
||
| 34 | $template, |
||
| 35 | dollarize($varName), |
||
| 36 | $format |
||
| 37 | ); |
||
| 38 | |||
| 39 | return $this->renderVariableEncodings($command, $statement); |
||
| 40 | } |
||
| 42 |