| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function translate(Mailcode_Commands_Command_SetVariable $command): string |
||
| 32 | { |
||
| 33 | $assignmentString = $command->getAssignmentString(); |
||
| 34 | |||
| 35 | if ($command->isCountEnabled()) |
||
| 36 | { |
||
| 37 | $result = $this->buildCountAssignment($command); |
||
| 38 | if($result !== null) { |
||
| 39 | $assignmentString = $result; |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | return sprintf( |
||
| 44 | '#set(%s = %s)', |
||
| 45 | $command->getVariable()->getFullName(), |
||
| 46 | $assignmentString |
||
| 47 | ); |
||
| 72 |