aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/ImportInterface.php
blob: 8cf238aab7a3e721d38a672d7c77869b8c50c92d (plain) (tree)
1
2
3
4
5
6
7
8



                                       


                                                      
 




                          
                              





                                 
                                     

       
                                           
      
                   
       
                             

       


                                                                     
      
                    
       
                                 
 
<?php

namespace Wallabag\ImportBundle\Import;

use Psr\Log\LoggerAwareInterface;

interface ImportInterface extends LoggerAwareInterface
{
    /**
     * Name of the import.
     *
     * @return string
     */
    public function getName();

    /**
     * Description of the import.
     *
     * @return string
     */
    public function getDescription();

    /**
     * Import content using the user token.
     *
     * @return bool
     */
    public function import();

    /**
     * Return an array with summary info about the import, with keys:
     *     - skipped
     *     - imported.
     *
     * @return array
     */
    public function getSummary();
}