ReturnUrls   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 47
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setAbort() 0 5 1
A __construct() 0 5 1
A getFail() 0 3 1
A getAbort() 0 3 1
A getSuccess() 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 ReturnUrls
10
{
11
    /**
12
     * @var string
13
     * @SerializedName("Success")
14
     */
15
    private $success;
16
17
    /**
18
     * @var string
19
     * @SerializedName("Fail")
20
     */
21
    private $fail;
22
23
    /**
24
     * @var string|null
25
     * @SerializedName("Abort")
26
     */
27
    private $abort;
28
29
    public function __construct(string $success, string $fail, string $abort = null)
30
    {
31
        $this->success = $success;
32
        $this->fail = $fail;
33
        $this->abort = $abort;
34
    }
35
36
    public function getSuccess(): string
37
    {
38
        return $this->success;
39
    }
40
41
    public function getFail(): string
42
    {
43
        return $this->fail;
44
    }
45
46
    public function getAbort(): ?string
47
    {
48
        return $this->abort;
49
    }
50
51
    public function setAbort(?string $abort): self
52
    {
53
        $this->abort = $abort;
54
55
        return $this;
56
    }
57
}
58