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