| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function process(ItemInterface $item, ExecutionContext $context): ItemInterface |
||
| 25 | { |
||
| 26 | 4 | // TODO Make this more intelligent with a small cache not to make it slow. |
|
| 27 | $method = 'process' . ucfirst($item->getMethod()); |
||
| 28 | if (method_exists($this, $method)) { |
||
| 29 | return $this->$method($item, $context); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $item; |
||
| 33 | } |
||
| 45 |