@@ -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 | } |
@@ -28,11 +28,22 @@ |
||
| 28 | 28 | |
| 29 | 29 | interface ModelFactoryInterface |
| 30 | 30 | { |
| 31 | + /** |
|
| 32 | + * @param string $name |
|
| 33 | + */ |
|
| 31 | 34 | public function createModel($name, $context); |
| 32 | 35 | |
| 36 | + /** |
|
| 37 | + * @param \ntentan\nibii\RecordWrapper $instance |
|
| 38 | + * |
|
| 39 | + * @return string |
|
| 40 | + */ |
|
| 33 | 41 | public function getModelTable($instance); |
| 34 | 42 | |
| 35 | 43 | public function getClassName($model); |
| 36 | 44 | |
| 45 | + /** |
|
| 46 | + * @return string |
|
| 47 | + */ |
|
| 37 | 48 | public function getJunctionClassName($classA, $classB); |
| 38 | 49 | } |
@@ -47,6 +47,9 @@ discard block |
||
| 47 | 47 | 'save', 'validate', |
| 48 | 48 | ]; |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $table |
|
| 52 | + */ |
|
| 50 | 53 | public function __construct(RecordWrapper $wrapper, $table) |
| 51 | 54 | { |
| 52 | 55 | $this->wrapper = $wrapper; |
@@ -56,6 +59,9 @@ discard block |
||
| 56 | 59 | $this->queryOperations = new QueryOperations($wrapper, $this->dataOperations, $driver); |
| 57 | 60 | } |
| 58 | 61 | |
| 62 | + /** |
|
| 63 | + * @param string $name |
|
| 64 | + */ |
|
| 59 | 65 | public function perform($name, $arguments) |
| 60 | 66 | { |
| 61 | 67 | //@todo Think of using a hash here in future |