MollieMethodImage::setName()   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 1
dl 0
loc 3
rs 10
c 0
b 0
f 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\Entity;
13
14
class MollieMethodImage implements MollieMethodImageInterface
15
{
16
    /** @var int|null */
17
    protected $id;
18
19
    /** @var string|null */
20
    protected $name;
21
22
    /** @var \SplFileInfo|null */
23
    protected $file;
24
25
    /** @var string */
26
    protected $path;
27
28
    /** @var MollieGatewayConfigInterface */
29
    protected $mollieGatewayConfig;
30
31
    public function getId(): ?int
32
    {
33
        return $this->id;
34
    }
35
36
    public function getName(): ?string
37
    {
38
        return $this->name;
39
    }
40
41
    public function setName(?string $name): void
42
    {
43
        $this->name = $name;
44
    }
45
46
    public function getFile(): ?\SplFileInfo
47
    {
48
        return $this->file;
49
    }
50
51
    public function setFile(?\SplFileInfo $file): void
52
    {
53
        $this->file = $file;
54
    }
55
56
    public function getPath(): ?string
57
    {
58
        return $this->path;
59
    }
60
61
    public function setPath(?string $path): void
62
    {
63
        $this->path = $path;
64
    }
65
66
    public function getMollieGatewayConfig(): MollieGatewayConfigInterface
67
    {
68
        return $this->mollieGatewayConfig;
69
    }
70
71
    public function setMollieGatewayConfig(MollieGatewayConfigInterface $mollieGatewayConfig): void
72
    {
73
        $this->mollieGatewayConfig = $mollieGatewayConfig;
74
    }
75
76
    public function hasFile(): bool
77
    {
78
        return null !== $this->file;
79
    }
80
}
81