| 1 | <?php |
||
| 8 | |||
| 9 | class StripeWebhookCall extends Model |
||
| 10 | { |
||
| 11 | public $guarded = []; |
||
| 12 | |||
| 13 | protected $casts = [ |
||
| 14 | 'payload' => 'array', |
||
| 15 | 'exception' => 'array', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | public function process() |
||
| 34 | |||
| 35 | public function saveException(Exception $exception) |
||
| 47 | |||
| 48 | protected function determineJobClass(string $eventType): string |
||
| 54 | |||
| 55 | protected function clearException() { |
||
| 56 | $this->exception = null; |
||
| 57 | |||
| 58 | $this->save(); |
||
| 63 |
This check looks for function calls that miss required arguments.