| 1 | <?php |
||
| 7 | class Nibii |
||
| 8 | { |
||
| 9 | 6 | public static function load($path) |
|
| 10 | { |
||
| 11 | 6 | return InjectionContainer::resolve(self::getClassName($path)); |
|
| 12 | } |
||
| 13 | |||
| 14 | 4 | public static function joinModels($classA, $classB) |
|
| 18 | |||
| 19 | 36 | public static function getModelTable($instance) |
|
| 20 | { |
||
| 21 | 36 | return InjectionContainer::singleton(interfaces\TableNameResolverInterface::class)->getTableName($instance); |
|
| 22 | } |
||
| 23 | |||
| 24 | 14 | public static function getClassName($model, $context = null) |
|
| 28 | |||
| 29 | 8 | public static function getModelName($class) |
|
| 30 | { |
||
| 33 | |||
| 34 | public static function setupDefaultBindings() |
||
| 40 | } |
||
| 41 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.