Passed
Push — master ( 5addfc...e8c424 )
by Manuel
59s queued 11s
created

Notification   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 54
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setPayerEmail() 0 5 1
A setNotifyUrl() 0 5 1
A getMerchantEmails() 0 3 1
A setMerchantEmails() 0 5 1
A getNotifyUrl() 0 3 1
A getPayerEmail() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
7
final class Notification
8
{
9
    /**
10
     * @var array<string>|null
11
     * @SerializedName("MerchantEmails")
12
     */
13
    private $merchantEmails = [];
14
15
    /**
16
     * @var string|null
17
     * @SerializedName("PayerEmail")
18
     */
19
    private $payerEmail;
20
21
    /**
22
     * @var string|null
23
     * @SerializedName("NotifyUrl")
24
     */
25
    private $notifyUrl;
26
27
    public function getMerchantEmails(): ?array
28
    {
29
        return $this->merchantEmails;
30
    }
31
32
    public function setMerchantEmails(?array $merchantEmails): self
33
    {
34
        $this->merchantEmails = $merchantEmails;
35
36
        return $this;
37
    }
38
39
    public function getPayerEmail(): ?string
40
    {
41
        return $this->payerEmail;
42
    }
43
44
    public function setPayerEmail(string $payerEmail): self
45
    {
46
        $this->payerEmail = $payerEmail;
47
48
        return $this;
49
    }
50
51
    public function getNotifyUrl(): ?string
52
    {
53
        return $this->notifyUrl;
54
    }
55
56
    public function setNotifyUrl(string $notifyUrl): self
57
    {
58
        $this->notifyUrl = $notifyUrl;
59
60
        return $this;
61
    }
62
}
63