CellInterface::hasTransformer()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace KGzocha\Searcher\Chain;
5
6
use KGzocha\Searcher\SearcherInterface;
7
8
/**
9
 * It represents single cell in the chain. It holds sub-searcher and it's transformer, which will
10
 * transform results from it's sub-searcher to CriteriaCollection that can be used in next sub-search.
11
 * Name of the cell will be used as the key of end result collection to allow finding all the results.
12
 *
13
 * @author Krzysztof Gzocha <[email protected]>
14
 */
15
interface CellInterface
16
{
17
    /**
18
     * @return SearcherInterface
19
     */
20
    public function getSearcher(): SearcherInterface;
21
22
    /**
23
     * @return TransformerInterface
24
     */
25
    public function getTransformer(): TransformerInterface;
26
27
    /**
28
     * @return bool
29
     */
30
    public function hasTransformer(): bool;
31
}
32