Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
Deprecated | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
loadByIsbn | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | /** |
4 | * Deprecated content loader (used for backward compatibility with deprecated |
5 | * settings). |
6 | * |
7 | * PHP version 8 |
8 | * |
9 | * Copyright (C) Villanova University 2020. |
10 | * |
11 | * This program is free software; you can redistribute it and/or modify |
12 | * it under the terms of the GNU General Public License version 2, |
13 | * as published by the Free Software Foundation. |
14 | * |
15 | * This program is distributed in the hope that it will be useful, |
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | * GNU General Public License for more details. |
19 | * |
20 | * You should have received a copy of the GNU General Public License |
21 | * along with this program; if not, write to the Free Software |
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
23 | * |
24 | * @category VuFind |
25 | * @package Content |
26 | * @author Demian Katz <demian.katz@villanova.edu> |
27 | * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
28 | * @link https://vufind.org/wiki/development Wiki |
29 | */ |
30 | |
31 | namespace VuFind\Content; |
32 | |
33 | /** |
34 | * Deprecated content loader (used for backward compatibility with deprecated |
35 | * settings). |
36 | * |
37 | * @category VuFind |
38 | * @package Content |
39 | * @author Demian Katz <demian.katz@villanova.edu> |
40 | * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License |
41 | * @link https://vufind.org/wiki/development Wiki |
42 | */ |
43 | class Deprecated extends \VuFind\Content\AbstractBase |
44 | { |
45 | /** |
46 | * Return empty data. |
47 | * |
48 | * @param string $key API key |
49 | * @param \VuFindCode\ISBN $isbnObj ISBN object |
50 | * |
51 | * @throws \Exception |
52 | * @return array Returns array with table of contents data. |
53 | * |
54 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
55 | */ |
56 | public function loadByIsbn($key, \VuFindCode\ISBN $isbnObj) |
57 | { |
58 | error_log('Deprecated content provider called; check configuration.'); |
59 | return []; |
60 | } |
61 | } |