@@ -29,7 +29,7 @@ |
||
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 = []); |
@@ -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 $handle |
58 | - * @return ModelWithIdInterface|null |
|
58 | + * @return \flipbox\spark\objects\Interfaces\ObjectInterface|null |
|
59 | 59 | */ |
60 | 60 | public function freshFindByHandle($handle) |
61 | 61 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | /** |
81 | 81 | * @param $handle |
82 | - * @return ModelWithIdInterface|null |
|
82 | + * @return null|\flipbox\spark\objects\Interfaces\ObjectInterface |
|
83 | 83 | * @throws ObjectNotFoundException |
84 | 84 | */ |
85 | 85 | public function freshGetByHandle($handle) |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | /** |
104 | 104 | * @param $handle |
105 | - * @return ModelWithIdInterface|null |
|
105 | + * @return \flipbox\spark\objects\Interfaces\ObjectInterface|null |
|
106 | 106 | */ |
107 | 107 | public function findByHandle($handle) |
108 | 108 | { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | /** |
143 | 143 | * @param $handle |
144 | - * @return ModelWithIdInterface|null |
|
144 | + * @return null|\flipbox\spark\objects\Interfaces\ObjectInterface |
|
145 | 145 | * @throws ObjectNotFoundException |
146 | 146 | */ |
147 | 147 | public function getByHandle($handle) |
@@ -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) |