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

IssueCommentCreatedModel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 34
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getActor() 0 4 1
A getRepository() 0 4 1
A getIssue() 0 4 1
A getComment() 0 4 1
1
<?php
2
3
namespace Smalot\Bitbucket\Webhook\Model;
4
5
/**
6
 * Class IssueCommentCreatedModel
7
 * @package Smalot\Bitbucket\Webhook\Model
8
 *
9
 * A user created a comment on an issue for a repository.
10
 */
11
class IssueCommentCreatedModel 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 getIssue()
33
    {
34
        return $this->payload['issue'];
35
    }
36
37
    /**
38
     * @return array
39
     */
40
    public function getComment()
41
    {
42
        return $this->payload['comment'];
43
    }
44
}
45