Conditions | 6 |
Paths | 7 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
68 | public function execute () : void |
||
69 | { |
||
70 | $this->results = $this->extractor->extract(); |
||
71 | |||
72 | foreach ( $this->steps as $currentStep ) { |
||
73 | if ( $currentStep instanceof Transformer ) { |
||
74 | foreach ( $this->results as $currentIndex => $currentItem ) { |
||
75 | $currentStep->transform( $this->results[$currentIndex] ); |
||
76 | } |
||
77 | } |
||
78 | |||
79 | if ( $currentStep instanceof Loader ) { |
||
80 | foreach ( $this->results as $currentIndex => $currentItem ) { |
||
81 | $currentStep->load( $currentItem ); |
||
82 | } |
||
125 |