Completed
Push — master ( 62048c...07dffc )
by Sebastien
02:43
created

PullrequestCommentUpdatedModel::getPullRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Smalot\Bitbucket\Webhook\Model;
4
5
/**
6
 * Class PullrequestCommentUpdatedModel
7
 * @package Smalot\Bitbucket\Webhook\Model
8
 *
9
 * A user updated a comment on a pull request.
10
 */
11 View Code Duplication
class PullrequestCommentUpdatedModel extends ModelBase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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