Webhook::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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