| 1 | <?php |
||
| 15 | trait CommonTrait |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Get module |
||
| 19 | * @return \inblank\activeuser\Module |
||
| 20 | * @throws InvalidConfigException |
||
| 21 | */ |
||
| 22 | static function getModule() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Models dependency injection resolver |
||
| 33 | * @param string $name class name for resolve |
||
| 34 | * @return mixed |
||
| 35 | * @throws InvalidConfigException |
||
| 36 | */ |
||
| 37 | public static function di($name) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Models table name with dependency injection resolver |
||
| 45 | * @param string $name class name for get table name |
||
| 46 | * @return string |
||
| 47 | * @throws InvalidConfigException |
||
| 48 | */ |
||
| 49 | public static function tn($name) |
||
| 54 | } |
||
| 55 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.