@@ 11-44 (lines=34) @@ | ||
8 | * |
|
9 | * A user approves a pull request for a repository. |
|
10 | */ |
|
11 | class PullrequestApprovedModel extends ModelBase |
|
12 | { |
|
13 | /** |
|
14 | * @return array |
|
15 | */ |
|
16 | public function getActor() |
|
17 | { |
|
18 | return $this->payload['actor']; |
|
19 | } |
|
20 | ||
21 | /** |
|
22 | * @return array |
|
23 | */ |
|
24 | public function getPullRequest() |
|
25 | { |
|
26 | return $this->payload['pullrequest']; |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @return array |
|
31 | */ |
|
32 | public function getRepository() |
|
33 | { |
|
34 | return $this->payload['repository']; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * @return array |
|
39 | */ |
|
40 | public function getApproval() |
|
41 | { |
|
42 | return $this->payload['approval']; |
|
43 | } |
|
44 | } |
|
45 |
@@ 11-44 (lines=34) @@ | ||
8 | * |
|
9 | * A user comments on a pull request. |
|
10 | */ |
|
11 | class PullrequestCommentCreatedModel extends ModelBase |
|
12 | { |
|
13 | /** |
|
14 | * @return array |
|
15 | */ |
|
16 | public function getActor() |
|
17 | { |
|
18 | return $this->payload['actor']; |
|
19 | } |
|
20 | ||
21 | /** |
|
22 | * @return array |
|
23 | */ |
|
24 | public function getPullRequest() |
|
25 | { |
|
26 | return $this->payload['pullrequest']; |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @return array |
|
31 | */ |
|
32 | public function getRepository() |
|
33 | { |
|
34 | return $this->payload['repository']; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * @return array |
|
39 | */ |
|
40 | public function getComment() |
|
41 | { |
|
42 | return $this->payload['comment']; |
|
43 | } |
|
44 | } |
|
45 |
@@ 11-44 (lines=34) @@ | ||
8 | * |
|
9 | * A user deleted a comment on a pull request. |
|
10 | */ |
|
11 | class PullrequestCommentDeletedModel extends ModelBase |
|
12 | { |
|
13 | /** |
|
14 | * @return array |
|
15 | */ |
|
16 | public function getActor() |
|
17 | { |
|
18 | return $this->payload['actor']; |
|
19 | } |
|
20 | ||
21 | /** |
|
22 | * @return array |
|
23 | */ |
|
24 | public function getPullRequest() |
|
25 | { |
|
26 | return $this->payload['pullrequest']; |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @return array |
|
31 | */ |
|
32 | public function getRepository() |
|
33 | { |
|
34 | return $this->payload['repository']; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * @return array |
|
39 | */ |
|
40 | public function getComment() |
|
41 | { |
|
42 | return $this->payload['comment']; |
|
43 | } |
|
44 | } |
|
45 |
@@ 11-44 (lines=34) @@ | ||
8 | * |
|
9 | * A user updated a comment on a pull request. |
|
10 | */ |
|
11 | class PullrequestCommentUpdatedModel extends ModelBase |
|
12 | { |
|
13 | /** |
|
14 | * @return array |
|
15 | */ |
|
16 | public function getActor() |
|
17 | { |
|
18 | return $this->payload['actor']; |
|
19 | } |
|
20 | ||
21 | /** |
|
22 | * @return array |
|
23 | */ |
|
24 | public function getPullRequest() |
|
25 | { |
|
26 | return $this->payload['pullrequest']; |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @return array |
|
31 | */ |
|
32 | public function getRepository() |
|
33 | { |
|
34 | return $this->payload['repository']; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * @return array |
|
39 | */ |
|
40 | public function getComment() |
|
41 | { |
|
42 | return $this->payload['comment']; |
|
43 | } |
|
44 | } |
|
45 |
@@ 11-44 (lines=34) @@ | ||
8 | * |
|
9 | * A user rejectes a pull request for a repository. |
|
10 | */ |
|
11 | class PullrequestRejectedModel extends ModelBase |
|
12 | { |
|
13 | /** |
|
14 | * @return array |
|
15 | */ |
|
16 | public function getActor() |
|
17 | { |
|
18 | return $this->payload['actor']; |
|
19 | } |
|
20 | ||
21 | /** |
|
22 | * @return array |
|
23 | */ |
|
24 | public function getPullRequest() |
|
25 | { |
|
26 | return $this->payload['pullrequest']; |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @return array |
|
31 | */ |
|
32 | public function getRepository() |
|
33 | { |
|
34 | return $this->payload['repository']; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * @return array |
|
39 | */ |
|
40 | public function getApproval() |
|
41 | { |
|
42 | return $this->payload['approval']; |
|
43 | } |
|
44 | } |
|
45 |
@@ 11-44 (lines=34) @@ | ||
8 | * |
|
9 | * A user removes an approval from a pull request for a repository. |
|
10 | */ |
|
11 | class PullrequestUnapprovedModel extends ModelBase |
|
12 | { |
|
13 | /** |
|
14 | * @return array |
|
15 | */ |
|
16 | public function getActor() |
|
17 | { |
|
18 | return $this->payload['actor']; |
|
19 | } |
|
20 | ||
21 | /** |
|
22 | * @return array |
|
23 | */ |
|
24 | public function getPullRequest() |
|
25 | { |
|
26 | return $this->payload['pullrequest']; |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @return array |
|
31 | */ |
|
32 | public function getRepository() |
|
33 | { |
|
34 | return $this->payload['repository']; |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * @return array |
|
39 | */ |
|
40 | public function getApproval() |
|
41 | { |
|
42 | return $this->payload['approval']; |
|
43 | } |
|
44 | } |
|
45 |