@@ 17-25 (lines=9) @@ | ||
14 | /** |
|
15 | * @param mixed[] $options |
|
16 | */ |
|
17 | public function __construct($options = []) { |
|
18 | foreach ($options as $key => $value) { |
|
19 | $method = 'set' . ucfirst($key); |
|
20 | ||
21 | if (method_exists($this, $method)) { |
|
22 | call_user_func([$this, $method], $value); |
|
23 | } |
|
24 | } |
|
25 | } |
|
26 | ||
27 | /** @var Element */ |
|
28 | private $topImageNode = null; |
@@ 15-23 (lines=9) @@ | ||
12 | /** |
|
13 | * @param mixed[] $options |
|
14 | */ |
|
15 | public function __construct($options = []) { |
|
16 | foreach ($options as $key => $value) { |
|
17 | $method = 'set' . ucfirst($key); |
|
18 | ||
19 | if (method_exists($this, $method)) { |
|
20 | call_user_func([$this, $method], $value); |
|
21 | } |
|
22 | } |
|
23 | } |
|
24 | ||
25 | /** |
|
26 | * remove unnecessary tmp image files |
@@ 25-33 (lines=9) @@ | ||
22 | /** |
|
23 | * @param mixed[] $options |
|
24 | */ |
|
25 | public function __construct($options = []) { |
|
26 | foreach ($options as $key => $value) { |
|
27 | $method = 'set' . ucfirst($key); |
|
28 | ||
29 | if (method_exists($this, $method)) { |
|
30 | call_user_func([$this, $method], $value); |
|
31 | } |
|
32 | } |
|
33 | } |
|
34 | ||
35 | /** |
|
36 | * @return string[] |