ThumbConfig::getAlias()   A
last analyzed

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
namespace Itstructure\MFU\Classes;
4
5
/**
6
 * Class ThumbConfig
7
 */
8
class ThumbConfig
9
{
10
    /**
11
     * @var string
12
     */
13
    private $alias;
14
15
    /**
16
     * @var string
17
     */
18
    private $name;
19
20
    /**
21
     * @var int|null
22
     */
23
    private $width;
24
25
    /**
26
     * @var int|null
27
     */
28
    private $height;
29
30
    /**
31
     * @var string|null
32
     */
33
    private $mode;
34
35
    /**
36
     * ThumbConfig constructor.
37
     * @param string $alias
38
     * @param string $name
39
     * @param int|null $width
40
     * @param int|null $height
41
     * @param string|null $mode
42
     */
43
    public function __construct(string $alias, string $name, ?int $width, ?int $height, string $mode = null)
44
    {
45
        $this->alias = $alias;
46
        $this->name = $name;
47
        $this->width = $width;
48
        $this->height = $height;
49
        $this->mode = $mode;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getAlias(): string
56
    {
57
        return $this->alias;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getName(): string
64
    {
65
        return $this->name;
66
    }
67
68
    /**
69
     * @return int|null
70
     */
71
    public function getWidth()
72
    {
73
        return $this->width;
74
    }
75
76
    /**
77
     * @return int|null
78
     */
79
    public function getHeight()
80
    {
81
        return $this->height;
82
    }
83
84
    /**
85
     * @return string|null
86
     */
87
    public function getMode(): ?string
88
    {
89
        return $this->mode;
90
    }
91
}
92