@@ 11-36 (lines=26) @@ | ||
8 | * |
|
9 | * A user creates a pull request for a repository. |
|
10 | */ |
|
11 | class PullrequestCreatedModel 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 |
@@ 11-36 (lines=26) @@ | ||
8 | * |
|
9 | * A user fulfilles a pull request for a repository. |
|
10 | */ |
|
11 | class PullrequestFulfilledModel 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 |
@@ 11-36 (lines=26) @@ | ||
8 | * |
|
9 | * A user updates a pull request for a repository. |
|
10 | */ |
|
11 | class PullrequestUpdatedModel 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 |