]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Import/ImportInterface.php
CS
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Import / ImportInterface.php
index 88de3fa8b8f26ccb7fe3da3029dbb9fa44bc980d..25dc0d857fecef031ae34bbb268b3c879b6efd6e 100644 (file)
@@ -2,9 +2,44 @@
 
 namespace Wallabag\ImportBundle\Import;
 
-interface ImportInterface
+use Psr\Log\LoggerAwareInterface;
+
+interface ImportInterface extends LoggerAwareInterface
 {
-    public function oAuthRequest($redirectUri, $callbackUri);
-    public function oAuthAuthorize();
-    public function import($accessToken);
+    /**
+     * Name of the import.
+     *
+     * @return string
+     */
+    public function getName();
+
+    /**
+     * Url to start the import.
+     *
+     * @return string
+     */
+    public function getUrl();
+
+    /**
+     * Description of the import.
+     *
+     * @return string
+     */
+    public function getDescription();
+
+    /**
+     * Import content using the user token.
+     *
+     * @return bool
+     */
+    public function import();
+
+    /**
+     * Return an array with summary info about the import, with keys:
+     *     - skipped
+     *     - imported.
+     *
+     * @return array
+     */
+    public function getSummary();
 }