1 | <?php |
||
13 | class Search extends QueryStrategy { |
||
14 | |||
15 | /** |
||
16 | * Move forward flag |
||
17 | * |
||
18 | * @var int |
||
19 | */ |
||
20 | const FORWARD = 1; |
||
21 | |||
22 | /** |
||
23 | * Move backward flag |
||
24 | * |
||
25 | * @var int |
||
26 | */ |
||
27 | const BACKWARD = -1; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $direction = 1; |
||
33 | |||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | 72 | public function process(\Funivan\PhpTokenizer\Collection $collection, $currentIndex) { |
|
66 | |||
67 | |||
68 | /** |
||
69 | * @param int $direction |
||
70 | * @return $this |
||
71 | */ |
||
72 | 9 | public function setDirection($direction) { |
|
81 | |||
82 | } |