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

PullrequestCreatedModel::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 PullrequestCreatedModel
7
 * @package Smalot\Bitbucket\Webhook\Model
8
 *
9
 * A user creates a pull request for a repository.
10
 */
11 View Code Duplication
class PullrequestCreatedModel 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