Skip to content

Commit b6948b6

Browse files
committed
update setter
1 parent 1f40c8e commit b6948b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ConsoleApp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function run(): void
3939

4040
$this->currentCommand = $this->commandFactory->getCommand("difference");
4141
$this->nextCommand = $this->currentCommand
42-
->getFileNames($this->nextCommand)
42+
->setFileNames($this->nextCommand)
4343
->setFileReader(new FileReader())
4444
->execute();
4545

src/Differ.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function genDiff(string $pathToFile1, string $pathToFile2)
1717
$nextCommand = $parserCommand->setFileNames($fileNames);
1818

1919
$currentCommand = new FilesDiffCommand();
20-
$nextCommand = $currentCommand->getFileNames($nextCommand)
20+
$nextCommand = $currentCommand->setFileNames($nextCommand)
2121
->setFileReader(new FileReader())
2222
->execute();
2323

src/FilesDiffCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function setFileReader(FileReaderInterface $fileReader): CommandInterface
2323
return $this;
2424
}
2525

26-
public function getFileNames(CommandInterface $command): CommandInterface
26+
public function setFileNames(CommandInterface $command): CommandInterface
2727
{
2828
$this->filesData = $command->getFileNames();
2929

0 commit comments

Comments
 (0)