Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | 12 | public static function with(plProcessor $last, plProcessor $next) |
|
10 | { |
||
11 | 12 | return new InvalidProcessorChain(sprintf( |
|
12 | 12 | 'Two processors in the chain are incompatible. The first processor\'s output is "%s". The next Processor in the queue does only support the following input type: %s.', |
|
13 | 12 | $last->getOutputType(), |
|
14 | 12 | $next->getInputType() |
|
15 | )); |
||
18 |