| @@ 57-66 (lines=10) @@ | ||
| 54 | /** |
|
| 55 | * @inheritdoc |
|
| 56 | */ |
|
| 57 | public function flow(NodeInterface $node) |
|
| 58 | { |
|
| 59 | $this->log(LogLevel::NOTICE, "Running through {count} flows", ['count' => count($this->items)]); |
|
| 60 | ||
| 61 | $current = $node; |
|
| 62 | foreach ($this->items as $flow) { |
|
| 63 | $current = $flow->flow($current); |
|
| 64 | } |
|
| 65 | return $current; |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * @var FlowBuilderInterface |
|
| @@ 32-41 (lines=10) @@ | ||
| 29 | /** |
|
| 30 | * @inheritdoc |
|
| 31 | */ |
|
| 32 | public function flow(NodeInterface $node) |
|
| 33 | { |
|
| 34 | $this->log(LogLevel::NOTICE, "Running through {count} flows", ['count' => count($this->items)]); |
|
| 35 | ||
| 36 | $current = $node; |
|
| 37 | foreach ($this->items as $flow) { |
|
| 38 | $current = $flow->flow($current); |
|
| 39 | } |
|
| 40 | return $current; |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||