From 816ca6ff90559c20c2a3608a6dcc805244fbf7e0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 1 Jun 2018 18:41:06 +0200 Subject: [PATCH] Improve docblock --- Interfaces/GSD/Importer.php | 9 +++++++++ Models/ImporterAbstract.php | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) 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; }