Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace GrowthExperiments\NewcomerTasks; |
4 | |
5 | use GrowthExperiments\NewcomerTasks\Task\TaskSet; |
6 | |
7 | interface TaskSetFilter { |
8 | |
9 | /** |
10 | * Filter out tasks from the TaskSet. Order is preserved. |
11 | * This is not particularly efficient; the taskset should not have more than a few tasks. |
12 | * @param TaskSet $taskSet |
13 | * @param int $maxLength Return at most this many tasks (used to avoid wasting time on |
14 | * checking tasks we won't need). |
15 | * @return TaskSet |
16 | */ |
17 | public function filter( TaskSet $taskSet, int $maxLength = PHP_INT_MAX ): TaskSet; |
18 | } |