@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | public abstract function findByRecord(RecordInterface $record); |
45 | 45 | |
46 | 46 | /** |
47 | - * @param array $config |
|
47 | + * @param \flipbox\spark\records\Interfaces\RecordWithIdInterface $config |
|
48 | 48 | * @return ObjectInterface |
49 | 49 | */ |
50 | 50 | public abstract function create($config = []); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @param $id |
58 | - * @return ModelWithIdInterface|null |
|
58 | + * @return \flipbox\spark\objects\Interfaces\ObjectInterface|null |
|
59 | 59 | */ |
60 | 60 | public function freshFindById($id) |
61 | 61 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | /** |
81 | 81 | * @param $id |
82 | - * @return ModelWithIdInterface|null |
|
82 | + * @return null|\flipbox\spark\objects\Interfaces\ObjectInterface |
|
83 | 83 | * @throws ObjectNotFoundException |
84 | 84 | */ |
85 | 85 | public function freshGetById($id) |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | /** |
104 | 104 | * @param $id |
105 | - * @return ModelWithIdInterface|null |
|
105 | + * @return \flipbox\spark\objects\Interfaces\ObjectInterface|null |
|
106 | 106 | */ |
107 | 107 | public function findById($id) |
108 | 108 | { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | /** |
143 | 143 | * @param $id |
144 | - * @return ModelWithIdInterface|null |
|
144 | + * @return null|\flipbox\spark\objects\Interfaces\ObjectInterface |
|
145 | 145 | * @throws ObjectNotFoundException |
146 | 146 | */ |
147 | 147 | public function getById($id) |
@@ -69,7 +69,7 @@ |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @param $model |
|
72 | + * @param ModelInterface $model |
|
73 | 73 | * @return ModelInterface |
74 | 74 | */ |
75 | 75 | public static function copy($model) |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * @param $identifier |
36 | 36 | * @param string $scenario |
37 | - * @return ModelWithHandleInterface|null |
|
37 | + * @return null|ModelInterface |
|
38 | 38 | */ |
39 | 39 | public function find($identifier, $scenario = ModelHelper::SCENARIO_SAVE) |
40 | 40 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * @param $identifier |
36 | 36 | * @param string $scenario |
37 | - * @return ModelWithIdInterface|null |
|
37 | + * @return null|ModelInterface |
|
38 | 38 | */ |
39 | 39 | public function find($identifier, $scenario = ModelHelper::SCENARIO_SAVE) |
40 | 40 | { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | /** |
30 | 30 | * prefixSessionData. |
31 | 31 | * |
32 | - * @return callable |
|
32 | + * @return \Closure |
|
33 | 33 | */ |
34 | 34 | public static function prefixSessionData() |
35 | 35 | { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @param Module $module |
72 | 72 | * @param array $config |
73 | 73 | * |
74 | - * @return array |
|
74 | + * @return callable |
|
75 | 75 | */ |
76 | 76 | public static function getDispatchDefinition(Module $module, array $config = []) |
77 | 77 | { |