diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Import')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/ImportInterface.php | 2 | ||||
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/ImportInterface.php b/src/Wallabag/ImportBundle/Import/ImportInterface.php index 88de3fa8..f07a120c 100644 --- a/src/Wallabag/ImportBundle/Import/ImportInterface.php +++ b/src/Wallabag/ImportBundle/Import/ImportInterface.php | |||
@@ -4,6 +4,8 @@ namespace Wallabag\ImportBundle\Import; | |||
4 | 4 | ||
5 | interface ImportInterface | 5 | interface ImportInterface |
6 | { | 6 | { |
7 | public function getName(); | ||
8 | public function getDescription(); | ||
7 | public function oAuthRequest($redirectUri, $callbackUri); | 9 | public function oAuthRequest($redirectUri, $callbackUri); |
8 | public function oAuthAuthorize(); | 10 | public function oAuthAuthorize(); |
9 | public function import($accessToken); | 11 | public function import($accessToken); |
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index 413c9ccc..81af8e57 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -23,6 +23,16 @@ class PocketImport implements ImportInterface | |||
23 | $this->consumerKey = $consumerKey; | 23 | $this->consumerKey = $consumerKey; |
24 | } | 24 | } |
25 | 25 | ||
26 | public function getName() | ||
27 | { | ||
28 | return 'Pocket'; | ||
29 | } | ||
30 | |||
31 | public function getDescription() | ||
32 | { | ||
33 | return 'This importer will import all your <a href="https://getpocket.com">Pocket</a> data.'; | ||
34 | } | ||
35 | |||
26 | /** | 36 | /** |
27 | * Create a new Client. | 37 | * Create a new Client. |
28 | * | 38 | * |