Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class WikidataSearchHandler implements CompleteHandlerInterface |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var OuvrageTemplate |
||
23 | */ |
||
24 | protected $bnfOuvrage; |
||
25 | /** |
||
26 | * @var WikidataAdapterInterface |
||
27 | */ |
||
28 | protected $wikidataAdapter; |
||
29 | /** |
||
30 | * @var string article title |
||
31 | */ |
||
32 | protected $page; |
||
33 | |||
34 | public function __construct(OuvrageTemplate $bnfOuvrage, WikidataAdapterInterface $wikidataAdapter, string $page) |
||
35 | { |
||
36 | $this->bnfOuvrage = $bnfOuvrage; |
||
37 | $this->wikidataAdapter = $wikidataAdapter; |
||
38 | $this->page = $page; |
||
39 | } |
||
40 | |||
41 | public function handle(): ?OuvrageTemplate |
||
51 | } |
||
52 | } |