Webhook.php 383 Bytes
Newer Older
Indra Raja's avatar
Indra Raja committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?php

namespace Pusher;

class Webhook
{
    private $time_ms;
    private $events = array();

    public function __construct($time_ms, $events)
    {
        $this->time_ms = $time_ms;
        $this->events = $events;
    }

    public function get_events()
    {
        return $this->events;
    }

    public function get_time_ms()
    {
        return $this->time_ms;
    }
}