| @@ 11-36 (lines=26) @@ | ||
| 8 | * |
|
| 9 | * A user forks a repository. |
|
| 10 | */ |
|
| 11 | class RepoForkModel 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 getRepository() |
|
| 25 | { |
|
| 26 | return $this->payload['repository']; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @return array |
|
| 31 | */ |
|
| 32 | public function getFork() |
|
| 33 | { |
|
| 34 | return $this->payload['fork']; |
|
| 35 | } |
|
| 36 | } |
|
| 37 | ||
| @@ 11-36 (lines=26) @@ | ||
| 8 | * |
|
| 9 | * A user pushes 1 or more commits to a repository. |
|
| 10 | */ |
|
| 11 | class RepoPushModel 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 getRepository() |
|
| 25 | { |
|
| 26 | return $this->payload['repository']; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @return array |
|
| 31 | */ |
|
| 32 | public function getPush() |
|
| 33 | { |
|
| 34 | return $this->payload['push']; |
|
| 35 | } |
|
| 36 | } |
|
| 37 | ||