| Total Complexity | 1 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | |||
| 8 | abstract class WebhookCallEvent |
||
| 9 | { |
||
| 10 | public string $httpVerb; |
||
| 11 | |||
| 12 | public string $webhookUrl; |
||
| 13 | |||
| 14 | public array $payload; |
||
| 15 | |||
| 16 | public array $headers; |
||
| 17 | |||
| 18 | public array $meta; |
||
| 19 | |||
| 20 | public array $tags; |
||
| 21 | |||
| 22 | public int $attempt; |
||
| 23 | |||
| 24 | public ?Response $response; |
||
| 25 | |||
| 26 | public ?TransferStats $stats; |
||
| 27 | |||
| 28 | public ?string $errorType; |
||
| 29 | |||
| 30 | public ?string $errorMessage; |
||
| 31 | |||
| 32 | public string $uuid; |
||
| 33 | |||
| 34 | public function __construct( |
||
| 35 | string $httpVerb, |
||
| 36 | string $webhookUrl, |
||
| 37 | array $payload, |
||
| 38 | array $headers, |
||
| 39 | array $meta, |
||
| 40 | array $tags, |
||
| 41 | int $attempt, |
||
| 42 | ?Response $response, |
||
| 43 | ?string $errorType, |
||
| 44 | ?string $errorMessage, |
||
| 45 | string $uuid, |
||
| 46 | ?TransferStats $stats |
||
| 47 | ) { |
||
| 48 | $this->httpVerb = $httpVerb; |
||
| 49 | $this->webhookUrl = $webhookUrl; |
||
| 50 | $this->payload = $payload; |
||
| 51 | $this->headers = $headers; |
||
| 52 | $this->meta = $meta; |
||
| 53 | $this->tags = $tags; |
||
| 54 | $this->attempt = $attempt; |
||
| 55 | $this->response = $response; |
||
| 62 |