for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @package Mailcode
* @subpackage Translator
*/
declare(strict_types=1);
namespace Mailcode\Translator\Syntax\ApacheVelocity;
use Mailcode\Mailcode_Commands_Command_ShowNumber;
use Mailcode\Mailcode_Translator_Command_ShowNumber;
use Mailcode\Translator\Syntax\BaseApacheVelocityCommandTranslation;
* Translates the {@see Mailcode_Commands_Command_ShowNumber} command to Apache Velocity.
*
* @author Sebastian Mordziol <[email protected]>
class ShowNumberTranslation extends BaseApacheVelocityCommandTranslation implements Mailcode_Translator_Command_ShowNumber
{
public function translate(Mailcode_Commands_Command_ShowNumber $command): string
$statement = $this->renderNumberFormat(
$command->getVariableName(),
$command->getFormatInfo(),
$command->isAbsolute()
);
return $this->renderVariableEncodings($command, $statement);
}