From 161a3229496de8df9e836e4c573830977c50969a Mon Sep 17 00:00:00 2001 From: Sergey Kudashev Date: Thu, 24 Mar 2022 01:59:46 +0300 Subject: [PATCH] Fix SizeInterface.php add the resize method to fit ResizeModifier usage. --- src/Interfaces/SizeInterface.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Interfaces/SizeInterface.php b/src/Interfaces/SizeInterface.php index 0e8ea82d..fd641fbe 100644 --- a/src/Interfaces/SizeInterface.php +++ b/src/Interfaces/SizeInterface.php @@ -9,6 +9,7 @@ interface SizeInterface public function getPivot(): PointInterface; public function setWidth(int $width): SizeInterface; public function setHeight(int $height): SizeInterface; + public function resize(?int $width = null, ?int $height = null): SizeInterface; public function getAspectRatio(): float; public function fitsInto(SizeInterface $size): bool; public function isLandscape(): bool;