| Total Complexity | 2 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 13 | final class CallbackMetadataEnricher implements MetadataEnricherInterface |
||
| 14 | { |
||
| 15 | private Closure $callable; |
||
| 16 | |||
| 17 | 2 | public function __construct(Closure $callable) |
|
| 18 | { |
||
| 19 | 2 | $this->callable = $callable; |
|
| 20 | 2 | } |
|
| 21 | |||
| 22 | 2 | public function enrich(MetadataInterface $metadata): MetadataInterface |
|
| 25 | } |
||
| 26 | } |
||
| 27 |