forked from leftypol/leftypol
ThumbGenerationResult.php: use constructor
This commit is contained in:
parent
551c366e6c
commit
f579a64637
1 changed files with 15 additions and 0 deletions
|
@ -8,4 +8,19 @@ class ThumbGenerationResult {
|
||||||
public bool $is_thumb_file_temporary;
|
public bool $is_thumb_file_temporary;
|
||||||
public int $width;
|
public int $width;
|
||||||
public int $height;
|
public int $height;
|
||||||
|
|
||||||
|
|
||||||
|
public function __construct(
|
||||||
|
string $thumb_file_path,
|
||||||
|
string $thumb_mime,
|
||||||
|
bool $is_thumb_file_temporary,
|
||||||
|
int $width,
|
||||||
|
int $height
|
||||||
|
) {
|
||||||
|
$this->thumb_file_path = $thumb_file_path;
|
||||||
|
$this->thumb_mime = $thumb_mime;
|
||||||
|
$this->is_thumb_file_temporary = $is_thumb_file_temporary;
|
||||||
|
$this->width = $width;
|
||||||
|
$this->height = $height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue