| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 1 | public function process(Mail $mail): ProcessResult |
|
| 32 | { |
||
| 33 | 1 | $processMail = clone $mail; |
|
| 34 | 1 | $result = ProcessResult::new(); |
|
| 35 | 1 | $result->setStatus(ProcessResult::SUCCEEDED); |
|
| 36 | 1 | foreach ($this->pipes as $pipe) { |
|
| 37 | 1 | $result = $pipe->process($processMail, $result); |
|
| 38 | } |
||
| 39 | |||
| 40 | 1 | return $result; |
|
| 41 | } |
||
| 42 | } |