improve decimal support
[awesomized/ext-ion] / ion.stub.php
index eac98f2e55d4d4f20518d1543caca0db9cf0f9b8..22504c79231deb772ef237b4909d083920bfb651 100644 (file)
@@ -98,15 +98,23 @@ class Collection {
 
 }
 
+
+namespace ion\Decimal;
+class Context {
+    public function __construct(
+        public readonly int $bits = 128
+    ) {}
+}
+
 namespace ion;
 class Decimal {
     public function __construct(
-        string|int $number,
+        public readonly string|int $number,
         public readonly ?Decimal\Context $context = null,
     ) {}
 
     public function equals(Decimal $decimal) : bool {}
-    public function zero() : void {}
+    public function isInt() : bool {}
 
     public function __toString() : string {}
     /** @alias ion\Decimal::__toString */
@@ -114,12 +122,6 @@ class Decimal {
     public function toInt() : int {}
 }
 
-namespace ion\Decimal;
-class Context {
-
-}
-
-
 namespace ion;
 class Timestamp extends \DateTime {
     public function __construct(