X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FImportBundle%2FImport%2FImportInterface.php;h=25dc0d857fecef031ae34bbb268b3c879b6efd6e;hb=2ba365c7c49556cd23b444dc3bb8d4a8cf08809d;hp=f07a120cf5cd8b7262e8985f08818c8e470771b1;hpb=d51b38ed309c9aead938e8c8963c05c6d82b4ec2;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ImportBundle/Import/ImportInterface.php b/src/Wallabag/ImportBundle/Import/ImportInterface.php index f07a120c..25dc0d85 100644 --- a/src/Wallabag/ImportBundle/Import/ImportInterface.php +++ b/src/Wallabag/ImportBundle/Import/ImportInterface.php @@ -2,11 +2,44 @@ namespace Wallabag\ImportBundle\Import; -interface ImportInterface +use Psr\Log\LoggerAwareInterface; + +interface ImportInterface extends LoggerAwareInterface { + /** + * 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(); - public function oAuthRequest($redirectUri, $callbackUri); - public function oAuthAuthorize(); - public function import($accessToken); + + /** + * 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(); }