@@ -137,7 +137,7 @@ |
||
| 137 | 137 | |
| 138 | 138 | /** |
| 139 | 139 | * @deprecated |
| 140 | - * @param $condition |
|
| 140 | + * @param string $condition |
|
| 141 | 141 | * @param string $scenario |
| 142 | 142 | * @return RecordInterface|null |
| 143 | 143 | */ |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * prefixSessionData. |
| 31 | 31 | * |
| 32 | - * @return callable |
|
| 32 | + * @return \Closure |
|
| 33 | 33 | */ |
| 34 | 34 | public static function prefixSessionData() |
| 35 | 35 | { |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | * Create a new object |
| 49 | 49 | * |
| 50 | 50 | * @param $config |
| 51 | - * @param null $instanceOf |
|
| 51 | + * @param string $instanceOf |
|
| 52 | 52 | * @return ObjectInterface |
| 53 | 53 | * @throws InvalidConfigurationException |
| 54 | 54 | */ |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | *******************************************/ |
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | - * @param array $config |
|
| 128 | + * @param \flipbox\spark\records\Interfaces\RecordInterface $config |
|
| 129 | 129 | * @param string $scenario |
| 130 | 130 | * @return ModelInterface |
| 131 | 131 | */ |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | *******************************************/ |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * @param array $config |
|
| 71 | + * @param \flipbox\spark\records\Interfaces\RecordInterface $config |
|
| 72 | 72 | * @return ObjectInterface |
| 73 | 73 | */ |
| 74 | 74 | public function create($config = []) |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * @param array $config |
|
| 49 | + * @param \flipbox\spark\records\Interfaces\RecordWithHandleInterface $config |
|
| 50 | 50 | * @param string $scenario |
| 51 | 51 | * @return ModelWithHandleInterface |
| 52 | 52 | */ |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | public abstract function findByRecord(RecordInterface $record, $scenario = ModelHelper::SCENARIO_SAVE); |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * @param array $config |
|
| 49 | + * @param \flipbox\spark\records\Interfaces\RecordWithIdInterface $config |
|
| 50 | 50 | * @param string $scenario |
| 51 | 51 | * @return ModelWithIdInterface |
| 52 | 52 | */ |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * @param $id |
| 123 | 123 | * @param string $scenario |
| 124 | - * @return ModelWithIdInterface|null |
|
| 124 | + * @return null|ModelInterface |
|
| 125 | 125 | */ |
| 126 | 126 | public function findById($id, $scenario = ModelHelper::SCENARIO_SAVE) |
| 127 | 127 | { |
@@ -28,13 +28,13 @@ |
||
| 28 | 28 | *******************************************/ |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * @param array $config |
|
| 31 | + * @param ModelWithIdInterface $config |
|
| 32 | 32 | * @return ModelEvent |
| 33 | 33 | */ |
| 34 | 34 | abstract protected function createEvent($config = []); |
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | - * @param $condition |
|
| 37 | + * @param string $condition |
|
| 38 | 38 | * @param string $scenario |
| 39 | 39 | * @return RecordWithIdInterface |
| 40 | 40 | */ |
@@ -29,13 +29,13 @@ |
||
| 29 | 29 | *******************************************/ |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * @param array $config |
|
| 32 | + * @param ModelWithIdInterface $config |
|
| 33 | 33 | * @return ModelEvent |
| 34 | 34 | */ |
| 35 | 35 | abstract protected function createEvent($config = []); |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | - * @param array $config |
|
| 38 | + * @param ModelWithIdInterface $config |
|
| 39 | 39 | * @param string $scenario |
| 40 | 40 | * @return RecordWithIdInterface |
| 41 | 41 | */ |