@@ -11,6 +11,13 @@ |
||
11 | 11 | |
12 | 12 | interface ModelFactoryInterface |
13 | 13 | { |
14 | + /** |
|
15 | + * @param string $name |
|
16 | + */ |
|
14 | 17 | public function createModel($name, $context); |
18 | + |
|
19 | + /** |
|
20 | + * @param \ntentan\nibii\RecordWrapper $instance |
|
21 | + */ |
|
15 | 22 | public function getModelTable($instance); |
16 | 23 | } |
17 | 24 | \ No newline at end of file |
@@ -17,5 +17,8 @@ |
||
17 | 17 | */ |
18 | 18 | interface ValidatorFactoryInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return \ntentan\nibii\DefaultValidator |
|
22 | + */ |
|
20 | 23 | public function createModelValidator(RecordWrapper $model, $mode); |
21 | 24 | } |
@@ -23,6 +23,9 @@ |
||
23 | 23 | 'save', 'validate' |
24 | 24 | ]; |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $table |
|
28 | + */ |
|
26 | 29 | public function __construct(RecordWrapper $wrapper, $table) |
27 | 30 | { |
28 | 31 | $this->wrapper = $wrapper; |