Passed
Push — master ( d0defb...6219a1 )
by
unknown
07:54
created

ApiKeyTest::getMethods()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
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
    public function __construct(string $type, bool $key = false, $methods = null)
28
    {
29
        $this->type = $type;
30
        $this->key = $key;
31
        $this->methods = $methods;
32
    }
33
34
    public function getType(): string
35
    {
36
        return $this->type;
37
    }
38
39
    public function getKey(): bool
40
    {
41
        return $this->key;
42
    }
43
44
    public function getMethods(): ?MethodCollection
45
    {
46
        return $this->methods;
47
    }
48
}
49