Webhook   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 38
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getUrl() 0 4 1
A setUrl() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PH\Component\Webhook\Model;
6
7
use Sylius\Component\Resource\Model\TimestampableTrait;
8
use Sylius\Component\Resource\Model\ToggleableTrait;
9
10
class Webhook implements WebhookInterface
11
{
12
    use TimestampableTrait, ToggleableTrait;
13
14
    /**
15
     * @var mixed
16
     */
17
    protected $id;
18
19
    /**
20
     * @var string
21
     */
22
    protected $url;
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function getId()
28
    {
29
        return $this->id;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getUrl()
36
    {
37
        return $this->url;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function setUrl(string $url)
44
    {
45
        $this->url = $url;
46
    }
47
}
48