| 1 | <?php |
||
| 13 | class SmartObjectRegister |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Register for smart object information. |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected static $smartObjectRegistry = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Add a model to the register. |
||
| 24 | * |
||
| 25 | * @param $modelName |
||
| 26 | */ |
||
| 27 | public static function register($modelName): void |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the register content. |
||
| 36 | * |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public static function getRegister() |
||
| 43 | } |
||
| 44 |