| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class TranslateCommand extends Command |
||
| 14 | { |
||
| 15 | private TranslatorInterface $translator; |
||
| 16 | |||
| 17 | public function __construct(TranslatorInterface $translator) |
||
| 18 | { |
||
| 19 | parent::__construct('app/translation/translate'); |
||
| 20 | $this->translator = $translator; |
||
| 21 | } |
||
| 22 | |||
| 23 | protected function configure() |
||
| 24 | { |
||
| 25 | $this->addArgument('message', InputArgument::REQUIRED, 'Message that will be translated.'); |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 33 | } |
||
| 34 | } |
||
| 35 |