RegistrationResult::getError()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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