1 | <?php |
||
17 | class TranslationsPullCommand extends Command |
||
18 | { |
||
19 | /** |
||
20 | * @var TranslationRepositoryInterface |
||
21 | */ |
||
22 | private $translationRepository; |
||
23 | |||
24 | /** |
||
25 | * @var FileServiceInterface |
||
26 | */ |
||
27 | private $fileService; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $translationDirectory; |
||
33 | |||
34 | /** |
||
35 | * @var Stopwatch |
||
36 | */ |
||
37 | private $stopwatch; |
||
38 | |||
39 | /** |
||
40 | * TranslationsPullCommand constructor. |
||
41 | * |
||
42 | * @param TranslationRepositoryInterface $translationRepository |
||
43 | * @param FileServiceInterface $fileService |
||
44 | * @param string $translationsDirectory |
||
45 | */ |
||
46 | public function __construct( |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | protected function configure() |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | protected function execute(InputInterface $input, OutputInterface $output) |
||
87 | |||
88 | /** |
||
89 | * @param ProjectDTO $project |
||
90 | * @param OutputInterface $output |
||
91 | */ |
||
92 | private function showWelcomeMessage(ProjectDTO $project, OutputInterface $output) |
||
103 | |||
104 | /** |
||
105 | * @param OutputInterface $output |
||
106 | */ |
||
107 | private function prepare(OutputInterface $output) |
||
116 | |||
117 | /** |
||
118 | * @param OutputInterface $output |
||
119 | */ |
||
120 | private function finish(OutputInterface $output) |
||
127 | |||
128 | /** |
||
129 | * @param ProjectFileDTO $projectFile |
||
130 | * @param int $currentFileCount |
||
131 | * @param int $totalFilesCount |
||
132 | * @param OutputInterface $output |
||
133 | */ |
||
134 | private function processFile( |
||
158 | } |
||
159 |