PendingNotification   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

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