ApiKeyTest::getKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file has been created by developers from BitBag.
5
 * Feel free to contact us once you face any issues or want to start
6
 * You can find more information about us on https://bitbag.io and write us
7
 * an email on [email protected].
8
 */
9
10
declare(strict_types=1);
11
12
namespace BitBag\SyliusMolliePlugin\DTO;
13
14
use Mollie\Api\Resources\MethodCollection;
15
16
final class ApiKeyTest
17
{
18
    /** @var string */
19
    private $type;
20
21
    /** @var bool */
22
    private $key;
23
24
    /** @var MethodCollection|null */
25
    private $methods;
26
27
    /** @var string */
28
    private $status;
29
30
    /** @var string */
31
    private $message;
32
33
    public function __construct(
34
        string $type,
35
        bool $key = false,
36
        $methods = null,
37
        string $status = 'OK',
38
        string $message = ''
39
    ) {
40
        $this->type = $type;
41
        $this->key = $key;
42
        $this->methods = $methods;
43
        $this->status = $status;
44
        $this->message = $message;
45
    }
46
47
    public function getType(): string
48
    {
49
        return $this->type;
50
    }
51
52
    public function getKey(): bool
53
    {
54
        return $this->key;
55
    }
56
57
    public function getMethods(): ?MethodCollection
58
    {
59
        return $this->methods;
60
    }
61
62
    public function setType(string $type): void
63
    {
64
        $this->type = $type;
65
    }
66
67
    public function setKey(bool $key): void
68
    {
69
        $this->key = $key;
70
    }
71
72
    public function setMethods(?MethodCollection $methods): void
73
    {
74
        $this->methods = $methods;
75
    }
76
77
    public function getStatus(): string
78
    {
79
        return $this->status;
80
    }
81
82
    public function setStatus(string $status): void
83
    {
84
        $this->status = $status;
85
    }
86
87
    public function getMessage(): string
88
    {
89
        return $this->message;
90
    }
91
92
    public function setMessage(string $message): void
93
    {
94
        $this->message = $message;
95
    }
96
}
97