| Total Complexity | 6 |
| Total Lines | 82 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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) |
||
| 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() |
||
| 82 | } |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return string|null |
||
| 86 | */ |
||
| 87 | public function getMode(): ?string |
||
| 90 | } |
||
| 91 | } |
||
| 92 |