server/src/app/Services/LexvoResolverInterface.php
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     1 <?php
       
     2 namespace CorpusParole\Services;
       
     3 
       
     4 interface LexvoResolverInterface {
       
     5 
       
     6     /**
       
     7      * Get name from Viaf id
       
     8      * @param string $id The id to resolve. Can be an url starting with http://viaf.org/viaf/
       
     9      * @return a string with the name
       
    10      */
       
    11     public function getName($id);
       
    12 
       
    13     /**
       
    14      * Get a list of names from an array of viaf ids.
       
    15      * @param array $ids The array of ids to resolve.
       
    16      *                   Each id can be an url starting with http://viaf.org/viaf/
       
    17      */
       
    18     public function getNames(array $ids);
       
    19 
       
    20 }