| Conditions | 4 |
| Paths | 4 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | |||
| 33 | if (! is_subclass_of($properties['signature_validator'], SignatureValidator::class)) { |
||
| 34 | throw InvalidConfig::invalidSignatureValidator($properties['signature_validator']); |
||
| 35 | } |
||
| 36 | $this->signatureValidator = app($properties['signature_validator']); |
||
| 37 | |||
| 38 | if (! is_subclass_of($properties['webhook_profile'], WebhookProfile::class)) { |
||
| 39 | throw InvalidConfig::invalidWebhookProfile($properties['webhook_profile']); |
||
| 40 | } |
||
| 41 | $this->webhookProfile = app($properties['webhook_profile']); |
||
| 42 | |||
| 43 | $this->webhookModel = $properties['webhook_model']; |
||
| 44 | |||
| 45 | if (! is_subclass_of($properties['process_webhook_job'], ProcessWebhookJob::class)) { |
||
| 46 | throw InvalidConfig::invalidProcessWebhookJob($properties['process_webhook_job']); |
||
| 47 | } |
||
| 48 | $this->processWebhookJob = app($properties['process_webhook_job']); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |