src/Genesis/API/Response.php
public static function transform($obj)
    {
        if (is_array($obj) || is_object($obj)) {
            foreach ($obj as &$object) {
                if (isset($object->status)) {
                    self::transformObject($object);
                }

                self::transform($object);
            }
        }
    }
public static function transform($obj)
    {
        if (is_array($obj) || is_object($obj)) {
            foreach ($obj as &$object) {
                if (isset($object->status)) {
                    self::transformObject($object);
                }

                self::transform($object);
            }
        }
    }
public static function transform ( $ obj ) { if ( is_array ( $ obj ) || is_object ( $ obj ) ) { foreach ( $ obj as & $ object ) { if ( isset ( $ object -> status ) ) { self :: transformObject ( $ object ) ; } self :: transform ( $ object ) ; } } }
Iterate and transform object

@param mixed $obj
Iterate and transform object