Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
OlzRootComponent
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
 getSearchTitle
n/a
0 / 0
n/a
0 / 0
0
 getSearchResults
n/a
0 / 0
n/a
0 / 0
0
1<?php
2
3namespace Olz\Components\Common;
4
5use Olz\Suche\Utils\SearchUtils;
6
7/**
8 * @phpstan-import-type SearchResult from SearchUtils
9 *
10 * @template T
11 *
12 * @extends OlzComponent<T>
13 */
14abstract class OlzRootComponent extends OlzComponent {
15    /** @return non-empty-string */
16    abstract public function getSearchTitle(): string;
17
18    /**
19     * @param array<string> $terms
20     *
21     * @return array<SearchResult>
22     */
23    abstract public function getSearchResults(array $terms): array;
24}