| Total Complexity | 10 |
| Total Lines | 90 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Pipeline implements Iterator |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Extractor |
||
| 15 | */ |
||
| 16 | private Extractor $extractor; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | private array $steps; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return Extractor |
||
| 25 | */ |
||
| 26 | public function getExtractor () : Extractor |
||
| 27 | { |
||
| 28 | return $this->extractor; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param Extractor $extractor |
||
| 33 | */ |
||
| 34 | public function setExtractor ( Extractor $extractor ) : void |
||
| 35 | { |
||
| 36 | $this->extractor = $extractor; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function getSteps () : array |
||
| 43 | { |
||
| 44 | return $this->steps; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param array $steps |
||
| 49 | */ |
||
| 50 | public function setSteps ( array $steps ) : void |
||
| 51 | { |
||
| 52 | $this->steps = $steps; |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return mixed|void |
||
| 57 | */ |
||
| 58 | public function current () |
||
| 60 | // TODO: Implement current() method. |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * |
||
| 65 | */ |
||
| 66 | public function next () |
||
| 67 | { |
||
| 68 | // TODO: Implement next() method. |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return bool|float|int|string|void|null |
||
| 73 | */ |
||
| 74 | public function key () |
||
| 76 | // TODO: Implement key() method. |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return bool|void |
||
| 81 | */ |
||
| 82 | public function valid () |
||
| 83 | { |
||
| 84 | // TODO: Implement valid() method. |
||
| 85 | } |
||
| 86 | |||
| 87 | /** |
||
| 88 | * |
||
| 89 | */ |
||
| 90 | public function rewind () |
||
| 92 | // TODO: Implement rewind() method. |
||
| 93 | } |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @param Step $step |
||
| 97 | */ |
||
| 98 | public function pipe ( Step $step ) : void |
||
| 101 | } |
||
| 102 | } |
||
| 103 |