Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace FileImporter\Interfaces;
4
5use FileImporter\Data\ImportDetails;
6use FileImporter\Data\SourceUrl;
7use FileImporter\Exceptions\SourceUrlException;
8
9/**
10 * This interface creates ImportDetails objects from a SourceUrl.
11 * This usually means making requests to the site hosting the SourceUrl to get data.
12 *
13 * @license GPL-2.0-or-later
14 * @author Addshore
15 */
16interface DetailRetriever {
17
18    /**
19     * @throws SourceUrlException if the given target can't be imported by this importer
20     */
21    public function getImportDetails( SourceUrl $sourceUrl ): ImportDetails;
22
23}