diff --git a/Interfaces/GSD/Importer.php b/Interfaces/GSD/Importer.php index 4884110..9d94171 100644 --- a/Interfaces/GSD/Importer.php +++ b/Interfaces/GSD/Importer.php @@ -74,6 +74,15 @@ final class Importer extends ImporterAbstract $this->importBatchPosting($start, $end); } + /** + * Import data from request + * + * @param RequestAbstract $request Request + * + * @return bool + * + * @since 1.0.0 + */ public function importFromRequest(RequestAbstract $request) : bool { $start = new \DateTime($request->getData('start') ?? 'now'); diff --git a/Models/ImporterAbstract.php b/Models/ImporterAbstract.php index 6a486d1..879f667 100644 --- a/Models/ImporterAbstract.php +++ b/Models/ImporterAbstract.php @@ -38,7 +38,6 @@ abstract class ImporterAbstract * Constructor * * @param ConnectionInterface $local Database connection - * @param ConnectionInterface $remote Database connection * * @since 1.0.0 */ @@ -46,4 +45,15 @@ abstract class ImporterAbstract { $this->remote = $remote; } + + /** + * Import data from request + * + * @param RequestAbstract $request Request + * + * @return bool + * + * @since 1.0.0 + */ + abstract public function importFromRequest(RequestAbstract $request) : bool; }