| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 74 | protected function populate(stdClass $response) |
||
| 75 | { |
||
| 76 | $webhook = clone $this; |
||
| 77 | $webhook->data = new stdClass(); |
||
| 78 | |||
| 79 | $webhook->data->id = $response->id; |
||
| 80 | $webhook->data->event = $response->event; |
||
| 81 | $webhook->data->url = $response->url; |
||
| 82 | $webhook->data->resourceId = $response->resourceId; |
||
| 83 | $webhook->data->status = $response->status; |
||
| 84 | |||
| 85 | return $webhook; |
||
| 86 | } |
||
| 87 | } |
||
| 88 |