]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/ImportBundle/Import/ImportInterface.php
Add tagged services for import
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Import / ImportInterface.php
CommitLineData
ff7b031d
NL
1<?php
2
3namespace Wallabag\ImportBundle\Import;
4
252ebd60
JB
5use Psr\Log\LoggerAwareInterface;
6
7interface ImportInterface extends LoggerAwareInterface
ff7b031d 8{
0aa344dc
JB
9 /**
10 * Name of the import.
11 *
12 * @return string
13 */
d51b38ed 14 public function getName();
0aa344dc 15
7019c7cf
JB
16 /**
17 * Url to start the import.
18 *
19 * @return string
20 */
21 public function getUrl();
22
0aa344dc
JB
23 /**
24 * Description of the import.
25 *
26 * @return string
27 */
d51b38ed 28 public function getDescription();
0aa344dc
JB
29
30 /**
252ebd60 31 * Import content using the user token.
0aa344dc 32 *
252ebd60 33 * @return bool
0aa344dc 34 */
252ebd60 35 public function import();
0aa344dc
JB
36
37 /**
252ebd60
JB
38 * Return an array with summary info about the import, with keys:
39 * - skipped
40 * - imported.
0aa344dc 41 *
252ebd60 42 * @return array
0aa344dc 43 */
252ebd60 44 public function getSummary();
ff7b031d 45}