@@ -137,6 +137,9 @@ |
||
| 137 | 137 | return array_sum($results) === count($results); |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $className |
|
| 142 | + */ |
|
| 140 | 143 | public function getStoragePath(AnnotatedInterface $model = null, $className = null) |
| 141 | 144 | { |
| 142 | 145 | if(empty($className)) |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * Register event handlers for parent of parent-child relation. |
| 44 | 44 | * |
| 45 | - * @param AnnotatedInterface|string $parent |
|
| 45 | + * @param string $parent |
|
| 46 | 46 | * @param string $childClass |
| 47 | 47 | */ |
| 48 | 48 | public function registerParent($parent, $childClass) |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | /** |
| 157 | 157 | * Register event handlers for child item of parent-child relation. |
| 158 | 158 | * |
| 159 | - * @param AnnotatedInterface|string $child |
|
| 159 | + * @param string $child |
|
| 160 | 160 | * @param string $parentClass |
| 161 | 161 | * @throws UnexpectedValueException |
| 162 | 162 | */ |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | /** |
| 615 | 615 | * Take care of EventBeforeSave |
| 616 | 616 | * @see EventBeforeSave |
| 617 | - * @param $model |
|
| 617 | + * @param AnnotatedInterface $model |
|
| 618 | 618 | * @param null|ModelEvent $event |
| 619 | 619 | * @return boolean |
| 620 | 620 | */ |
@@ -636,7 +636,7 @@ discard block |
||
| 636 | 636 | /** |
| 637 | 637 | * Take care of EventAfterSave |
| 638 | 638 | * @see EventAfterSave |
| 639 | - * @param $model |
|
| 639 | + * @param AnnotatedInterface $model |
|
| 640 | 640 | * @param null|ModelEvent $event |
| 641 | 641 | */ |
| 642 | 642 | private function afterSave($model, $event = null) |
@@ -42,6 +42,9 @@ |
||
| 42 | 42 | private $_values = []; |
| 43 | 43 | private $_defaults = []; |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param \Maslosoft\Addendum\Interfaces\AnnotatedInterface $model |
|
| 47 | + */ |
|
| 45 | 48 | public function __construct($model) |
| 46 | 49 | { |
| 47 | 50 | // This is to use get/set |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | use Maslosoft\Mangan\Helpers\PropertyMaker; |
| 17 | 17 | use Maslosoft\Mangan\Mangan; |
| 18 | -use Maslosoft\Mangan\Meta\DocumentTypeMeta; |
|
| 19 | 18 | use Maslosoft\Mangan\Meta\ManganMeta; |
| 20 | 19 | use Maslosoft\Mangan\Traits\Defaults\MongoClientOptions; |
| 21 | 20 | |