1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-22 21:42:53 +02:00

Fix SizeInterface.php add the resize method to fit ResizeModifier usage.

This commit is contained in:
Sergey Kudashev
2022-03-24 01:59:46 +03:00
parent ad0ad16042
commit 161a322949

View File

@@ -9,6 +9,7 @@ interface SizeInterface
public function getPivot(): PointInterface; public function getPivot(): PointInterface;
public function setWidth(int $width): SizeInterface; public function setWidth(int $width): SizeInterface;
public function setHeight(int $height): SizeInterface; public function setHeight(int $height): SizeInterface;
public function resize(?int $width = null, ?int $height = null): SizeInterface;
public function getAspectRatio(): float; public function getAspectRatio(): float;
public function fitsInto(SizeInterface $size): bool; public function fitsInto(SizeInterface $size): bool;
public function isLandscape(): bool; public function isLandscape(): bool;