Code Duplication    Length = 26-26 lines in 3 locations

src/Smalot/Bitbucket/Webhook/Model/PullrequestCreatedModel.php 1 location

@@ 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

src/Smalot/Bitbucket/Webhook/Model/PullrequestFulfilledModel.php 1 location

@@ 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

src/Smalot/Bitbucket/Webhook/Model/PullrequestUpdatedModel.php 1 location

@@ 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