diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/ImportInterface.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/ImportInterface.php | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/ImportInterface.php b/src/Wallabag/ImportBundle/Import/ImportInterface.php new file mode 100644 index 00000000..25dc0d85 --- /dev/null +++ b/src/Wallabag/ImportBundle/Import/ImportInterface.php | |||
@@ -0,0 +1,45 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\ImportBundle\Import; | ||
4 | |||
5 | use Psr\Log\LoggerAwareInterface; | ||
6 | |||
7 | interface ImportInterface extends LoggerAwareInterface | ||
8 | { | ||
9 | /** | ||
10 | * Name of the import. | ||
11 | * | ||
12 | * @return string | ||
13 | */ | ||
14 | public function getName(); | ||
15 | |||
16 | /** | ||
17 | * Url to start the import. | ||
18 | * | ||
19 | * @return string | ||
20 | */ | ||
21 | public function getUrl(); | ||
22 | |||
23 | /** | ||
24 | * Description of the import. | ||
25 | * | ||
26 | * @return string | ||
27 | */ | ||
28 | public function getDescription(); | ||
29 | |||
30 | /** | ||
31 | * Import content using the user token. | ||
32 | * | ||
33 | * @return bool | ||
34 | */ | ||
35 | public function import(); | ||
36 | |||
37 | /** | ||
38 | * Return an array with summary info about the import, with keys: | ||
39 | * - skipped | ||
40 | * - imported. | ||
41 | * | ||
42 | * @return array | ||
43 | */ | ||
44 | public function getSummary(); | ||
45 | } | ||