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