| 1 | <?php |
||
| 8 | class ImporterRepository |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Importer[] |
||
| 12 | */ |
||
| 13 | private $importers = array(); |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var ImporterPrecondition[] |
||
| 17 | */ |
||
| 18 | private $preconditions = array(); |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var LoggerInterface |
||
| 22 | */ |
||
| 23 | private $logger; |
||
| 24 | |||
| 25 | 1 | public function __construct(LoggerInterface $logger = null) |
|
| 29 | |||
| 30 | 1 | public function register($id, Importer $importer, ImporterPrecondition $precondition = null) |
|
| 38 | |||
| 39 | public function getIds() |
||
| 43 | |||
| 44 | public function hasPrecondition($id) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return Importer |
||
| 51 | */ |
||
| 52 | 1 | public function get($id) |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function find(StorageInterface $storage) |
||
| 86 | } |
||
| 87 |