forked from jerrybendy/coding-webhook-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebhook_Data.php
More file actions
41 lines (38 loc) · 848 Bytes
/
Webhook_Data.php
File metadata and controls
41 lines (38 loc) · 848 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Created by PhpStorm.
* User: jerry
* Date: 16/6/13
* Time: 10:12
*/
namespace Jerrybendy\Coding;
/**
* Class Webhook_Data
*
* @package Jerrybendy\Coding\Webhook
*
* @property string $token
* @property string $event
* @property object|null $ref
* @property object|null $after
* @property object|null $before
* @property object|null $repository
* @property object|null $commit
* @property object|null $author
* @property object|null $target_user
* @property string $action
* @property object|null $topic
* @property object|null $document
* @property string $type
* @property object|null $merge_request
* @property object|null $pull_request
*/
class Webhook_Data
{
public function __construct($obj)
{
foreach($obj as $k => $v){
$this->{$k} = $v;
}
}
}