Completed
Pull Request — master (#52)
by Rafał
04:38
created

Metadata::getValue()   A

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\Subscription\Model;
6
7
class Metadata implements MetadataInterface
8
{
9
    /**
10
     * @var string|null
11
     */
12
    protected $id;
13
14
    /**
15
     * @var string
16
     */
17
    protected $key;
18
19
    /**
20
     * @var string
21
     */
22
    protected $value;
23
24
    /**
25
     * @var SubscriptionInterface
26
     */
27
    protected $subscription;
28
29
    public function getId(): ?string
30
    {
31
        return $this->id;
32
    }
33
34
    public function getKey(): ?string
35
    {
36
        return $this->key;
37
    }
38
39
    public function setKey(?string $key): void
40
    {
41
        $this->key = $key;
42
    }
43
44
    public function getValue(): ?string
45
    {
46
        return $this->value;
47
    }
48
49
    public function setValue(?string $value): void
50
    {
51
        $this->value = $value;
52
    }
53
54
    public function getSubscription(): ?SubscriptionInterface
55
    {
56
        return $this->subscription;
57
    }
58
59
    public function setSubscription(?SubscriptionInterface $subscription): void
60
    {
61
        $this->subscription = $subscription;
62
    }
63
}
64