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

RegistrationResult   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getError() 0 3 1
A isSuccess() 0 3 1
A getAuthenticationResult() 0 3 1
A getAlias() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Response\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class RegistrationResult
9
{
10
    /**
11
     * @var bool|null
12
     * @SerializedName("Success")
13
     * @Type("boolean")
14
     */
15
    private $success;
16
17
    /**
18
     * @var Alias|null
19
     * @SerializedName("Alias")
20
     * @Type("Ticketpark\SaferpayJson\Response\Container\Alias")
21
     */
22
    private $alias;
23
24
    /**
25
     * @var Error|null
26
     * @SerializedName("Error")
27
     * @Type("Ticketpark\SaferpayJson\Response\Container\Error")
28
     */
29
    private $error;
30
31
    /**
32
     * @var AuthenticationResult|null
33
     * @SerializedName("AuthenticationResult")
34
     * @Type("Ticketpark\SaferpayJson\Response\Container\AuthenticationResult")
35
     */
36
    private $authenticationResult;
37
38
    public function isSuccess(): ?bool
39
    {
40
        return $this->success;
41
    }
42
43
    public function getAlias(): ?Alias
44
    {
45
        return $this->alias;
46
    }
47
48
    public function getError(): ?Error
49
    {
50
        return $this->error;
51
    }
52
53
    public function getAuthenticationResult(): ?AuthenticationResult
54
    {
55
        return $this->authenticationResult;
56
    }
57
}
58