Conditions | 7 |
Paths | 64 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 7 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 2 | public function setData(array $params = []): self |
|
27 | { |
||
28 | 2 | $this->descDir = !empty($params['desc_dir']) ? strval($params['desc_dir']) : $this->descDir; |
|
29 | 2 | $this->descFile = !empty($params['desc_file']) ? strval($params['desc_file']) : $this->descFile; |
|
30 | 2 | $this->descExt = !empty($params['desc_ext']) ? strval($params['desc_ext']) : $this->descExt; |
|
31 | 2 | $this->thumbDir = !empty($params['thumb_dir']) ? strval($params['thumb_dir']) : $this->thumbDir; |
|
32 | 2 | $this->thumbExt = !empty($params['tmb_ext']) ? strval($params['tmb_ext']) : $this->thumbExt; |
|
33 | 2 | $this->thumbTemp = !empty($params['tmb_temp']) ? strval($params['tmb_temp']) : $this->thumbTemp; |
|
34 | 2 | return $this; |
|
35 | } |
||
67 |