@@ -12,6 +12,16 @@ |
||
| 12 | 12 | interface ModelFactoryInterface |
| 13 | 13 | { |
| 14 | 14 | public function createModel($name, $context); |
| 15 | + |
|
| 16 | + /** |
|
| 17 | + * @param \ntentan\nibii\RecordWrapper $instance |
|
| 18 | + * |
|
| 19 | + * @return string |
|
| 20 | + */ |
|
| 15 | 21 | public function getModelTable($instance); |
| 22 | + |
|
| 23 | + /** |
|
| 24 | + * @return string |
|
| 25 | + */ |
|
| 16 | 26 | public function getJunctionClassName($classA, $classB); |
| 17 | 27 | } |
| 18 | 28 | \ No newline at end of file |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | return $this->config; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param RecordWrapper $model |
|
| 94 | + */ |
|
| 92 | 95 | public function getModelDescription($model) : ModelDescription |
| 93 | 96 | { |
| 94 | 97 | return new ModelDescription($model); |