Skip to content

Commit cc52a8d

Browse files
committed
Rename "write" command&service to "import" instead
1 parent 651a860 commit cc52a8d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
use Symfony\Component\Console\Output\OutputInterface;
1111
use Symfony\Component\Console\Style\SymfonyStyle;
1212

13-
class WriteOperationsCommand extends Command
13+
class ImportOperationsCommand extends Command
1414
{
15-
protected static $defaultName = 'operations:import';
15+
protected static string $defaultName = 'operations:import';
1616

17-
private $writer;
17+
private OperationsImporter $writer;
1818

1919
public function __construct(OperationsImporter $writer)
2020
{
@@ -26,7 +26,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
2626
{
2727
$io = new SymfonyStyle($input, $output);
2828

29-
$persistedCount = $this->writer->write();
29+
$persistedCount = $this->writer->import();
3030

3131
if ($persistedCount) {
3232
$io->success(sprintf('Wrote %d new operations!', $persistedCount));

src/Operations/OperationsImporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(string $bankSourcesDir, OperationRepository $reposit
3232
$this->em = $em;
3333
}
3434

35-
public function write(): int
35+
public function import(): int
3636
{
3737
$months = $this->getMonthsData();
3838

0 commit comments

Comments
 (0)