| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function registerHook($hook, $type, $class) |
||
| 45 | { |
||
| 46 | $reflectedConcern = new \ReflectionClass($class); |
||
| 47 | |||
| 48 | if ($reflectedConcern->implementsInterface(Fluent::class)) { |
||
| 49 | $fluentReflection = new ReflectionClass(Fluent::class); |
||
| 50 | $firstMethod = reset($fluentReflection->getMethods()); |
||
| 51 | |||
| 52 | ("add_$type")($hook, [$class, $firstMethod->name]); |
||
| 53 | } |
||
| 56 |