+++ /dev/null
-<?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;
- }
-
-
-}
--- /dev/null
+<?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;
+ }
+
+
+}