[BUGFIX] Eliminate gremlins in image cropper
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Imaging / ImageManipulation / Ratio.php
index e88f56a..d13b41b 100644 (file)
@@ -79,4 +79,20 @@ class Ratio
             'value' => $this->value,
         ];
     }
+
+    /**
+     * @return float
+     */
+    public function getRatioValue(): float
+    {
+        return $this->value;
+    }
+
+    /**
+     * @return bool
+     */
+    public function isFree(): bool
+    {
+        return $this->value === 0.0;
+    }
 }