| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait RegistersMethod |
||
| 8 | { |
||
| 9 | protected CustomMethods $customMethods; |
||
| 10 | |||
| 11 | /** @psalm-param non-empty-string $name */ |
||
| 12 | 2 | public function registerMethod(string $name, callable $callable): void |
|
| 13 | { |
||
| 14 | 2 | $this->customMethods->add($name, $callable); |
|
| 15 | } |
||
| 16 | |||
| 17 | 3 | public function getMethods(): CustomMethods |
|
| 20 | } |
||
| 21 | } |
||
| 22 |