| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 33 | trait Registerable |
||
| 34 | { |
||
| 35 | /** |
||
| 36 | * Used to register Wordpress hooks. |
||
| 37 | * |
||
| 38 | * @param string $hook Used to specify the name of the hook |
||
| 39 | * @param string $type Used to specify the type of the hook |
||
| 40 | * @param mixed $class Class that should be used for the closure |
||
| 41 | * |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | public function registerHook($hook, $type, $class) |
||
| 56 |