src/Resource/Webhook.php
protected function populate(stdClass $response)
    {
        $webhook = clone $this;
        $webhook->data = new stdClass();

        $webhook->data->id = $response->id;
        $webhook->data->event = $response->event;
        $webhook->data->url = $response->url;
        $webhook->data->resourceId = $response->resourceId;
        $webhook->data->status = $response->status;

        return $webhook;
    }
protected function populate(stdClass $response)
    {
        $webhook = clone $this;
        $webhook->data = new stdClass();

        $webhook->data->id = $response->id;
        $webhook->data->event = $response->event;
        $webhook->data->url = $response->url;
        $webhook->data->resourceId = $response->resourceId;
        $webhook->data->status = $response->status;

        return $webhook;
    }
protected function populate ( stdClass $ response ) { $ webhook = clone $ this ; $ webhook -> data = new stdClass ( ) ; $ webhook -> data -> id = $ response -> id ; $ webhook -> data -> event = $ response -> event ; $ webhook -> data -> url = $ response -> url ; $ webhook -> data -> resourceId = $ response -> resourceId ; $ webhook -> data -> status = $ response -> status ; return $ webhook ; }
Mount structure of Webhook.

@param \stdClass $response

@return \Moip\Resource\Webhook Webhook
Mount structure of Webhook .