1 | <?php |
||
24 | class Move implements StrategyInterface { |
||
25 | |||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | protected $steps; |
||
31 | |||
32 | /** |
||
33 | * @var int |
||
34 | */ |
||
35 | protected $direction; |
||
36 | |||
37 | |||
38 | /** |
||
39 | * @param int $steps |
||
40 | * @return static |
||
41 | */ |
||
42 | 21 | public static function create($steps) { |
|
45 | |||
46 | |||
47 | /** |
||
48 | * You can pass positive and negative numbers |
||
49 | * Positive - move forward |
||
50 | * Negative - move backward |
||
51 | * |
||
52 | * @param int $steps |
||
53 | */ |
||
54 | 21 | public function __construct($steps) { |
|
63 | |||
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 18 | public function process(\Funivan\PhpTokenizer\Collection $collection, $currentIndex) { |
|
83 | |||
84 | } |