| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class AbstractComponent |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Get the component helper |
||
| 13 | * |
||
| 14 | * @return ComponentHelper |
||
| 15 | */ |
||
| 16 | abstract protected function helper(): ComponentHelper; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Initialize the component |
||
| 20 | * |
||
| 21 | * @param Container $di |
||
| 22 | * @param ComponentHelper $xHelper |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | abstract protected function initComponent(Container $di, ComponentHelper $xHelper); |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Initialize the component |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | protected function setupComponent(): void |
||
| 34 | {} |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get the js call factory. |
||
| 38 | * |
||
| 39 | * @param string $sClassName |
||
| 40 | * |
||
| 41 | * @return JxnCall |
||
| 42 | */ |
||
| 43 | protected function rq(string $sClassName = ''): JxnCall |
||
| 46 | } |
||
| 47 | } |
||
| 48 |