2015-10-23 12:01:27 +00:00
|
|
|
<?php
|
|
|
|
|
2024-02-19 00:30:12 +00:00
|
|
|
namespace Wallabag\Import;
|
2015-10-23 12:01:27 +00:00
|
|
|
|
2015-12-30 11:23:51 +00:00
|
|
|
use Psr\Log\LoggerAwareInterface;
|
|
|
|
|
|
|
|
interface ImportInterface extends LoggerAwareInterface
|
2015-10-23 12:01:27 +00:00
|
|
|
{
|
2015-12-24 14:22:56 +00:00
|
|
|
/**
|
|
|
|
* Name of the import.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
2015-10-23 12:45:50 +00:00
|
|
|
public function getName();
|
2015-12-24 14:22:56 +00:00
|
|
|
|
2015-12-31 10:24:46 +00:00
|
|
|
/**
|
|
|
|
* Url to start the import.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getUrl();
|
|
|
|
|
2015-12-24 14:22:56 +00:00
|
|
|
/**
|
|
|
|
* Description of the import.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
2015-10-23 12:45:50 +00:00
|
|
|
public function getDescription();
|
2015-12-24 14:22:56 +00:00
|
|
|
|
|
|
|
/**
|
2015-12-30 11:23:51 +00:00
|
|
|
* Import content using the user token.
|
2015-12-24 14:22:56 +00:00
|
|
|
*
|
2015-12-30 11:23:51 +00:00
|
|
|
* @return bool
|
2015-12-24 14:22:56 +00:00
|
|
|
*/
|
2015-12-30 11:23:51 +00:00
|
|
|
public function import();
|
2015-12-24 14:22:56 +00:00
|
|
|
|
|
|
|
/**
|
2015-12-30 11:23:51 +00:00
|
|
|
* Return an array with summary info about the import, with keys:
|
|
|
|
* - skipped
|
|
|
|
* - imported.
|
2015-12-24 14:22:56 +00:00
|
|
|
*
|
2015-12-30 11:23:51 +00:00
|
|
|
* @return array
|
2015-12-24 14:22:56 +00:00
|
|
|
*/
|
2015-12-30 11:23:51 +00:00
|
|
|
public function getSummary();
|
2015-10-23 12:01:27 +00:00
|
|
|
}
|