server/src/app/Services/ViafResolverInterface.php
changeset 23 037687868bc4
equal deleted inserted replaced
22:a50cbd7d702f 23:037687868bc4
       
     1 <?php
       
     2 namespace CorpusParole\Services;
       
     3 
       
     4 interface ViafResolverInterface {
       
     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 }