X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FImportBundle%2FImport%2FImportInterface.php;h=25dc0d857fecef031ae34bbb268b3c879b6efd6e;hb=2491c50b6bbb4d51696ad64aa754c1cd0fc83d1b;hp=88de3fa8b8f26ccb7fe3da3029dbb9fa44bc980d;hpb=ff7b031d5792f7b6fd43b508d89397775bd1433c;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ImportBundle/Import/ImportInterface.php b/src/Wallabag/ImportBundle/Import/ImportInterface.php index 88de3fa8..25dc0d85 100644 --- a/src/Wallabag/ImportBundle/Import/ImportInterface.php +++ b/src/Wallabag/ImportBundle/Import/ImportInterface.php @@ -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(); }