From 2de45528dd42e6844bae4b1715b4ee1ba076beb3 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 22 May 2022 18:59:53 +0200 Subject: [PATCH] Add method to SizeInterface --- src/Interfaces/SizeInterface.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Interfaces/SizeInterface.php b/src/Interfaces/SizeInterface.php index 92ba6674..ba8fef44 100644 --- a/src/Interfaces/SizeInterface.php +++ b/src/Interfaces/SizeInterface.php @@ -16,4 +16,5 @@ interface SizeInterface public function isPortrait(): bool; public function alignPivot(string $position, int $offset_x = 0, int $offset_y = 0): SizeInterface; public function alignPivotTo(SizeInterface $size, string $position): SizeInterface; + public function contain(int $width, int $height): SizeInterface; }