lagdo /
ui-builder
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Lagdo\UiBuilder\Component\Base; |
||
| 4 | |||
| 5 | use Lagdo\UiBuilder\Component\Base\HtmlComponent; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * The common base class for all components, virtual or real. |
||
| 9 | */ |
||
| 10 | abstract class Component |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Callback on component creation. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | */ |
||
| 17 | protected function onCreate(): void |
||
| 18 | {} |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Callback on component parent-child relation. |
||
| 22 | * |
||
| 23 | * @param HtmlComponent $parent |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | protected function onBuild(HtmlComponent $parent): void |
||
|
0 ignored issues
–
show
|
|||
| 28 | {} |
||
| 29 | } |
||
| 30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.