From ab9fb353ba23e013cf63a4f7e62884331022c243 Mon Sep 17 00:00:00 2001 From: aB0t Date: Tue, 15 Oct 2024 04:21:36 +0200 Subject: [PATCH] Update 2024-10-15 04:21:01 --- src/85321deb-5c3a-401b-9ce1-039a746add51/README.md | 2 +- src/85321deb-5c3a-401b-9ce1-039a746add51/code.php | 6 +++--- src/85321deb-5c3a-401b-9ce1-039a746add51/code.power | 4 ++-- src/85321deb-5c3a-401b-9ce1-039a746add51/settings.json | 8 ++++---- src/c4169332-3914-400e-b861-972b2d465963/README.md | 6 +++--- src/c4169332-3914-400e-b861-972b2d465963/code.php | 6 +++--- src/c4169332-3914-400e-b861-972b2d465963/code.power | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/85321deb-5c3a-401b-9ce1-039a746add51/README.md b/src/85321deb-5c3a-401b-9ce1-039a746add51/README.md index 545badf..bcb73ab 100644 --- a/src/85321deb-5c3a-401b-9ce1-039a746add51/README.md +++ b/src/85321deb-5c3a-401b-9ce1-039a746add51/README.md @@ -14,7 +14,7 @@ @startuml abstract Import #Orange { # Items $items - # Import $import + # ImportEngine $import # string $queueTable # string $targetName # string $targetImportClass diff --git a/src/85321deb-5c3a-401b-9ce1-039a746add51/code.php b/src/85321deb-5c3a-401b-9ce1-039a746add51/code.php index e60b772..532f376 100644 --- a/src/85321deb-5c3a-401b-9ce1-039a746add51/code.php +++ b/src/85321deb-5c3a-401b-9ce1-039a746add51/code.php @@ -18,8 +18,8 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use VDM\Joomla\Componentbuilder\Import\Factory as ImportFactory; +use VDM\Joomla\Componentbuilder\Interfaces\Spreadsheet\ImportCliInterface as ImportEngine; use VDM\Joomla\Data\Items; -use VDM\Joomla\Componentbuilder\Interfaces\Spreadsheet\ImportCliInterface as Import; use VDM\Joomla\Utilities\Component\Helper; @@ -41,10 +41,10 @@ abstract class Import extends AbstractCommand /** * The Import Class. * - * @var Import + * @var ImportEngine * @since 5.0.2 */ - protected Import $import; + protected ImportEngine $import; /** * The queue table name. diff --git a/src/85321deb-5c3a-401b-9ce1-039a746add51/code.power b/src/85321deb-5c3a-401b-9ce1-039a746add51/code.power index 610d7d5..18009a3 100644 --- a/src/85321deb-5c3a-401b-9ce1-039a746add51/code.power +++ b/src/85321deb-5c3a-401b-9ce1-039a746add51/code.power @@ -9,10 +9,10 @@ /** * The Import Class. * - * @var Import + * @var ImportEngine * @since 5.0.2 */ - protected Import $import; + protected ImportEngine $import; /** * The queue table name. diff --git a/src/85321deb-5c3a-401b-9ce1-039a746add51/settings.json b/src/85321deb-5c3a-401b-9ce1-039a746add51/settings.json index 6b2f1d9..c3cf55e 100644 --- a/src/85321deb-5c3a-401b-9ce1-039a746add51/settings.json +++ b/src/85321deb-5c3a-401b-9ce1-039a746add51/settings.json @@ -14,14 +14,14 @@ "use": "ff8d5fdb-2d1f-4178-bd18-a43b8efd1068", "as": "ImportFactory" }, + "use_selection2": { + "use": "0f3f7188-3e0d-4d1a-8dee-7f8026cb65a9", + "as": "ImportEngine" + }, "use_selection1": { "use": "21bca8a4-5b28-41c4-843e-8097f0ba7cca", "as": "default" }, - "use_selection2": { - "use": "0f3f7188-3e0d-4d1a-8dee-7f8026cb65a9", - "as": "Import" - }, "use_selection3": { "use": "640b5352-fb09-425f-a26e-cd44eda03f15", "as": "default" diff --git a/src/c4169332-3914-400e-b861-972b2d465963/README.md b/src/c4169332-3914-400e-b861-972b2d465963/README.md index 1eb3a4b..372b379 100644 --- a/src/c4169332-3914-400e-b861-972b2d465963/README.md +++ b/src/c4169332-3914-400e-b861-972b2d465963/README.md @@ -14,7 +14,7 @@ class Importer << (F,LightGreen) >> #RoyalBlue { # FileReader $filereader + __construct(FileReader $filereader) - + read(string $filePath, int $startRow = 1, ...) : \Generator + + read(string $filePath, int $startRow, ...) : \Generator } note right of Importer::__construct @@ -31,8 +31,8 @@ note right of Importer::read arguments: string $filePath - int $startRow = 1 - int $chunkSize = 100 + int $startRow + int $chunkSize RowDataProcessor $processor end note diff --git a/src/c4169332-3914-400e-b861-972b2d465963/code.php b/src/c4169332-3914-400e-b861-972b2d465963/code.php index 92e5f1b..7feb13b 100644 --- a/src/c4169332-3914-400e-b861-972b2d465963/code.php +++ b/src/c4169332-3914-400e-b861-972b2d465963/code.php @@ -47,8 +47,8 @@ final class Importer * Stream rows from a CSV or Excel file one by one using yield. * * @param string $filePath The path to the file. - * @param int $startRow The starting row index (default is 1). - * @param int $chunkSize The number of rows to read per chunk (default is 100). + * @param int $startRow The starting row index. + * @param int $chunkSize The number of rows to read per chunk. * @param RowDataProcessor $processor The processor used to transform the row data into the desired format. * * @return \Generator A generator that yields each row as an array. @@ -58,7 +58,7 @@ final class Importer * @throws SpreadsheetException If there is an error working with the spreadsheet. * @since 3.2.0 */ - public function read(string $filePath, int $startRow = 1, int $chunkSize = 100, RowDataProcessor $processor): \Generator + public function read(string $filePath, int $startRow, int $chunkSize, RowDataProcessor $processor): \Generator { foreach ($this->filereader->read($filePath, $startRow, $chunkSize) as $row) { diff --git a/src/c4169332-3914-400e-b861-972b2d465963/code.power b/src/c4169332-3914-400e-b861-972b2d465963/code.power index 0ed0e62..cb02773 100644 --- a/src/c4169332-3914-400e-b861-972b2d465963/code.power +++ b/src/c4169332-3914-400e-b861-972b2d465963/code.power @@ -22,8 +22,8 @@ * Stream rows from a CSV or Excel file one by one using yield. * * @param string $filePath The path to the file. - * @param int $startRow The starting row index (default is 1). - * @param int $chunkSize The number of rows to read per chunk (default is 100). + * @param int $startRow The starting row index. + * @param int $chunkSize The number of rows to read per chunk. * @param RowDataProcessor $processor The processor used to transform the row data into the desired format. * * @return \Generator A generator that yields each row as an array. @@ -33,7 +33,7 @@ * @throws SpreadsheetException If there is an error working with the spreadsheet. * @since 3.2.0 */ - public function read(string $filePath, int $startRow = 1, int $chunkSize = 100, RowDataProcessor $processor): \Generator + public function read(string $filePath, int $startRow, int $chunkSize, RowDataProcessor $processor): \Generator { foreach ($this->filereader->read($filePath, $startRow, $chunkSize) as $row) {