1 | <?php |
||
15 | trait SoftDeletes |
||
16 | { |
||
17 | /** |
||
18 | * Indicates if the model is currently force deleting. |
||
19 | * |
||
20 | * @var bool |
||
21 | */ |
||
22 | protected $forceDeleting = false; |
||
23 | |||
24 | /** |
||
25 | * Boot the soft deleting trait for a model. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public static function bootSoftDeletes() |
||
33 | |||
34 | /** |
||
35 | * Force a hard delete on a soft deleted model. |
||
36 | * |
||
37 | * @return bool|null |
||
38 | */ |
||
39 | public function forceDelete() |
||
49 | |||
50 | /** |
||
51 | * Perform the actual delete query on this model instance. |
||
52 | * |
||
53 | * @return mixed |
||
54 | */ |
||
55 | protected function performDeleteOnModel() |
||
63 | |||
64 | /** |
||
65 | * Perform the actual delete query on this model instance. |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | protected function runSoftDelete() |
||
87 | |||
88 | /** |
||
89 | * Restore a soft-deleted model instance. |
||
90 | * |
||
91 | * @return bool|null |
||
92 | */ |
||
93 | public function restore() |
||
116 | |||
117 | /** |
||
118 | * Determine if the model instance has been soft-deleted. |
||
119 | * |
||
120 | * @return bool |
||
121 | */ |
||
122 | public function trashed() |
||
126 | |||
127 | /** |
||
128 | * Get a new query builder that includes soft deletes. |
||
129 | * |
||
130 | * @return \Illuminate\Database\Eloquent\Builder|static |
||
131 | */ |
||
132 | public static function withTrashed() |
||
136 | |||
137 | /** |
||
138 | * Get a new query builder that only includes soft deletes. |
||
139 | * |
||
140 | * @return \Illuminate\Database\Eloquent\Builder|static |
||
141 | */ |
||
142 | public static function onlyTrashed() |
||
150 | |||
151 | /** |
||
152 | * Register a restoring model event with the dispatcher. |
||
153 | * |
||
154 | * @param \Closure|string $callback |
||
155 | * @return void |
||
156 | */ |
||
157 | public static function restoring($callback) |
||
161 | |||
162 | /** |
||
163 | * Register a restored model event with the dispatcher. |
||
164 | * |
||
165 | * @param \Closure|string $callback |
||
166 | * @return void |
||
167 | */ |
||
168 | public static function restored($callback) |
||
172 | |||
173 | /** |
||
174 | * Get the name of the "deleted at" column. |
||
175 | * |
||
176 | * @return string |
||
177 | */ |
||
178 | public function getDeletedAtColumn() |
||
182 | |||
183 | /** |
||
184 | * Get the name of the "deleted by" column. |
||
185 | * |
||
186 | * @return string |
||
187 | */ |
||
188 | public function getDeletedByColumn() |
||
192 | |||
193 | /** |
||
194 | * Get the fully qualified "deleted at" column. |
||
195 | * |
||
196 | * @return string |
||
197 | */ |
||
198 | public function getQualifiedDeletedAtColumn() |
||
202 | |||
203 | /** |
||
204 | * Get the fully qualified "deleted by" column. |
||
205 | * |
||
206 | * @return string |
||
207 | */ |
||
208 | public function getQualifiedDeletedByColumn() |
||
212 | |||
213 | } |
||
214 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.