@@ -31,7 +31,6 @@ public function __construct()
3131
3232 /**
3333 * Notice: this function cannot be used in async jobs because the connection is not serializable!
34- * @param ConnectionInterface $connection
3534 */
3635 public function changeDatabaseConnection ($ connection )
3736 {
@@ -64,14 +63,6 @@ public function newQuery(): Builder
6463// return $this;
6564// }
6665
67- /**
68- * @param int|null $total
69- * @param int $offset
70- * @param int $count
71- * @param array $orders
72- * @param array $filters
73- * @return Collection
74- */
7566 public function getAllForGridView (null |int &$ total , int $ offset = 0 , int $ count = 0 , array $ orders = [], array $ filters = []): Collection
7667 {
7768 $ query = $ this ->newQuery ();
@@ -99,10 +90,6 @@ public function exists($columnValue, $columnName = null)
9990
10091 /**
10192 * this is for validation purpose look at AppServiceProvider
102- * @param $attribute
103- * @param $value
104- * @param null $ignoredPrimaryKey
105- * @return bool
10693 */
10794 public function valueExists ($ attribute , $ value , $ ignoredPrimaryKey = null )
10895 {
@@ -121,10 +108,7 @@ public function valueExists($attribute, $value, $ignoredPrimaryKey = null)
121108 return $ query ->exists ();
122109 }
123110
124- /**
125- * @param Entity $model
126- */
127- public function updateOrCreate ($ model )
111+ public function updateOrCreate (Entity $ model )
128112 {
129113 if ($ this ->exists ($ model ->getPrimaryKey ())) {
130114 $ this ->update ($ model );
@@ -136,7 +120,7 @@ public function updateOrCreate($model)
136120 /**
137121 * @param Entity $model
138122 */
139- public function createIfNotExists ($ model )
123+ public function createIfNotExists (Entity $ model )
140124 {
141125 if (!$ this ->exists ($ model ->getPrimaryKey ())) {
142126 $ this ->create ($ model );
@@ -157,15 +141,6 @@ public function getMaxId()
157141 }
158142 }
159143
160- /**
161- * @param Builder $query
162- * @param int $offset
163- * @param int $count
164- * @param int|null $total
165- * @param array $orders
166- * @param array $filters
167- * @return Builder
168- */
169144 protected function processGridViewQuery (Builder $ query , null |int &$ total , int $ offset = 0 , int $ count = 0 , array $ orders = [], array $ filters = []): Builder
170145 {
171146 if ($ orders ) {
0 commit comments