Webhook   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 4 1
A getModelId() 0 4 1
A getCallbackURL() 0 4 1
A isActive() 0 4 1
1
<?php
2
3
namespace Trello\Model;
4
5
/**
6
 * @codeCoverageIgnore
7
 */
8
class Webhook extends AbstractObject implements WebhookInterface
9
{
10
    protected $apiName = 'webhook';
11
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function getDescription()
16
    {
17
        return $this->data['description'];
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getModelId()
24
    {
25
        return $this->data['idModel'];
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getCallbackURL()
32
    {
33
        return $this->data['callbackURL'];
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function isActive()
40
    {
41
        return $this->data['active'];
42
    }
43
}
44