Improve docblock

This commit is contained in:
Dennis Eichhorn 2018-06-01 18:41:06 +02:00
parent ad146a7850
commit 816ca6ff90
2 changed files with 20 additions and 1 deletions

View File

@ -74,6 +74,15 @@ final class Importer extends ImporterAbstract
$this->importBatchPosting($start, $end); $this->importBatchPosting($start, $end);
} }
/**
* Import data from request
*
* @param RequestAbstract $request Request
*
* @return bool
*
* @since 1.0.0
*/
public function importFromRequest(RequestAbstract $request) : bool public function importFromRequest(RequestAbstract $request) : bool
{ {
$start = new \DateTime($request->getData('start') ?? 'now'); $start = new \DateTime($request->getData('start') ?? 'now');

View File

@ -38,7 +38,6 @@ abstract class ImporterAbstract
* Constructor * Constructor
* *
* @param ConnectionInterface $local Database connection * @param ConnectionInterface $local Database connection
* @param ConnectionInterface $remote Database connection
* *
* @since 1.0.0 * @since 1.0.0
*/ */
@ -46,4 +45,15 @@ abstract class ImporterAbstract
{ {
$this->remote = $remote; $this->remote = $remote;
} }
/**
* Import data from request
*
* @param RequestAbstract $request Request
*
* @return bool
*
* @since 1.0.0
*/
abstract public function importFromRequest(RequestAbstract $request) : bool;
} }