]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/ImportBundle/Import/ImportInterface.php
Add tagged services for 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 * 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 }