| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 42 | public function decorate(callable $callback, FunctionSpecInterface $spec, ExecutionContextInterface $exec): callable |
||
| 43 | { |
||
| 44 | foreach ($spec->getDecorators() as $decorator_spec) { |
||
| 45 | $decorator = $this->collection->get($decorator_spec->getName()); |
||
| 46 | |||
| 47 | $callback = $decorator->decorate($callback, $exec); |
||
| 48 | } |
||
| 49 | |||
| 50 | return $callback; |
||
| 51 | } |
||
| 52 | } |
||
| 53 |