Passed
Pull Request — master (#28)
by Manuel
02:19
created

PendingNotification   A

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