| 1 | <?php |
||
| 2 | |||
| 3 | namespace SRIO\ChainOfResponsibility; |
||
| 4 | |||
| 5 | class DecoratorFactory implements DecoratorFactoryInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * {@inheritdoc} |
||
| 9 | */ |
||
| 10 | 7 | public function decorate(ChainProcessInterface $process, ChainProcessInterface $next = null) |
|
| 11 | { |
||
| 12 | 7 | return new ChainProcessDecorator($process, $next); |
|
| 13 | } |
||
| 14 | } |
||
| 15 |