Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
14 | interface TransformerInterface |
||
15 | { |
||
16 | /** |
||
17 | * Will transform previous results and criteria into new one, |
||
18 | * that will be used in next cell. |
||
19 | * |
||
20 | * @param mixed $results |
||
21 | * @param CriteriaCollectionInterface $criteria |
||
22 | * |
||
23 | * @return CriteriaCollectionInterface |
||
24 | */ |
||
25 | public function transform($results, CriteriaCollectionInterface $criteria): CriteriaCollectionInterface; |
||
26 | |||
27 | /** |
||
28 | * Important! Results might be null when cell will be used as first one. |
||
29 | * |
||
30 | * @param mixed $results |
||
31 | * |
||
32 | * @return bool |
||
33 | */ |
||
34 | public function skip($results): bool; |
||
35 | } |
||
36 |