| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 75 | public function update(Webhook $webhook): self |
||
| 76 | { |
||
| 77 | $webhook->setRequired([ |
||
| 78 | 'endpoint', |
||
| 79 | 'events', |
||
| 80 | ]); |
||
| 81 | |||
| 82 | // Set HTTP params |
||
| 83 | $this->type = 'put'; |
||
| 84 | $this->endpoint = '/webhooks/' . $this->webhook_id; |
||
| 85 | $this->params = $webhook; |
||
| 86 | $this->response = Webhook::class; |
||
| 87 | |||
| 88 | return $this; |
||
| 89 | } |
||
| 106 |