| Total Complexity | 4 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class Mailcode_Translator_Syntax_ApacheVelocity_ShowDate extends Mailcode_Translator_Syntax_ApacheVelocity implements Mailcode_Translator_Command_ShowDate |
||
| 24 | { |
||
| 25 | const ERROR_UNKNOWN_DATE_FORMAT_CHARACTER = 55501; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string[]string |
||
| 29 | */ |
||
| 30 | private $charTable = array( |
||
| 31 | 'd' => 'd', |
||
| 32 | 'm' => 'M', |
||
| 33 | 'Y' => 'yyyy', |
||
| 34 | 'y' => 'yy', |
||
| 35 | 'H' => 'H', |
||
| 36 | 'i' => 'm', |
||
| 37 | 's' => 's', |
||
| 38 | '.' => '.', |
||
| 39 | ':' => ':', |
||
| 40 | '-' => '-', |
||
| 41 | '/' => '/', |
||
| 42 | ' ' => ' ' |
||
| 43 | ); |
||
| 44 | |||
| 45 | public function translate(Mailcode_Commands_Command_ShowDate $command): string |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | |||
| 54 | private function translateFormat(string $formatString) : string |
||
| 80 |