]> _ Git - cubist_util.git/commitdiff
#2810
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jun 2019 17:28:53 +0000 (19:28 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jun 2019 17:28:53 +0000 (19:28 +0200)
src/Cubist/Util/Object.php [deleted file]
src/Cubist/Util/ObjectUtil.php [new file with mode: 0644]

diff --git a/src/Cubist/Util/Object.php b/src/Cubist/Util/Object.php
deleted file mode 100644 (file)
index 96445d0..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-namespace Cubist\Util;
-class Object {
-
-       protected $_orderOnProperty = null;
-       protected $_orderOnIsMethod = false;
-
-       public static function toArray($o) {
-               if (is_array($o)) {
-                       return $o;
-               }
-               if (is_object($o)) {
-                       return get_object_vars($o);
-               }
-       }
-
-       public static function cloneObject($o) {
-               return unserialize(serialize($o));
-       }
-
-       /**
-        * @param $o mixed
-        * @return object \stdClass
-        */
-       public static function asObject($o) {
-               if ($o instanceof \stdClass) {
-                       return $o;
-               }
-               return (object)$o;
-       }
-
-
-}
diff --git a/src/Cubist/Util/ObjectUtil.php b/src/Cubist/Util/ObjectUtil.php
new file mode 100644 (file)
index 0000000..cbc196b
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+namespace Cubist\Util;
+class ObjectUtil {
+
+       protected $_orderOnProperty = null;
+       protected $_orderOnIsMethod = false;
+
+       public static function toArray($o) {
+               if (is_array($o)) {
+                       return $o;
+               }
+               if (is_object($o)) {
+                       return get_object_vars($o);
+               }
+       }
+
+       public static function cloneObject($o) {
+               return unserialize(serialize($o));
+       }
+
+       /**
+        * @param $o mixed
+        * @return object \stdClass
+        */
+       public static function asObject($o) {
+               if ($o instanceof \stdClass) {
+                       return $o;
+               }
+               return (object)$o;
+       }
+
+
+}