]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/ImportBundle/Import/ImportInterface.php
Rewrote Pocket Import
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Import / ImportInterface.php
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 * Description of the import.
18 *
19 * @return string
20 */
21 public function getDescription();
22
23 /**
24 * Import content using the user token.
25 *
26 * @return bool
27 */
28 public function import();
29
30 /**
31 * Return an array with summary info about the import, with keys:
32 * - skipped
33 * - imported.
34 *
35 * @return array
36 */
37 public function getSummary();
38 }