Completed
Push — master ( ea324c...2e8bb7 )
by Andrey
01:33
created

ThumbConfig   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 87
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 87
c 0
b 0
f 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getAlias() 0 4 1
A getName() 0 4 1
A getWidth() 0 4 1
A getHeight() 0 4 1
A getMode() 0 4 1
1
<?php
2
3
namespace Itstructure\MFUploader\components;
4
5
use Itstructure\MFUploader\interfaces\ThumbConfigInterface;
6
7
/**
8
 * Class ThumbConfig
9
 *
10
 * @property string $alias Alias name.
11
 * @property string $name Config name.
12
 * @property int $width Thumb width.
13
 * @property int $height Thumb height.
14
 * @property string $mode Thumb mode.
15
 *
16
 * @package Itstructure\MFUploader\components
17
 *
18
 * @author Andrey Girnik <[email protected]>
19
 */
20
class ThumbConfig implements ThumbConfigInterface
21
{
22
    /**
23
     * Alias name.
24
     *
25
     * @var string
26
     */
27
    public $alias;
28
29
    /**
30
     * Config name.
31
     *
32
     * @var string
33
     */
34
    public $name;
35
36
    /**
37
     * Thumb width.
38
     *
39
     * @var
40
     */
41
    public $width;
42
43
    /**
44
     * Thumb height.
45
     *
46
     * @var
47
     */
48
    public $height;
49
50
    /**
51
     * Thumb mode.
52
     *
53
     * @var
54
     */
55
    public $mode;
56
57
    /**
58
     * Get alias name.
59
     *
60
     * @return string
61
     */
62
    public function getAlias(): string
63
    {
64
        return $this->alias;
65
    }
66
67
    /**
68
     * Get config name.
69
     *
70
     * @return string
71
     */
72
    public function getName(): string
73
    {
74
        return $this->name;
75
    }
76
77
    /**
78
     * Get thumb width.
79
     *
80
     * @return int
81
     */
82
    public function getWidth(): int
83
    {
84
        return $this->width;
85
    }
86
87
    /**
88
     * Get thumb height.
89
     *
90
     * @return int
91
     */
92
    public function getHeight(): int
93
    {
94
        return $this->height;
95
    }
96
97
    /**
98
     * Get thumb mode.
99
     *
100
     * @return string
101
     */
102
    public function getMode(): string
103
    {
104
        return $this->mode;
105
    }
106
}
107