src/Objects.php
public static function fromArray(array $attributes) {
        $object = new ArrayObject();
        foreach ($attributes as $key => $val) {
            $object[$key] = $val;
        }
        return $object;
    }
public static function fromArray(array $attributes) {
        $object = new ArrayObject();
        foreach ($attributes as $key => $val) {
            $object[$key] = $val;
        }
        return $object;
    }
public static function fromArray ( array $ attributes ) { $ object = new ArrayObject ( ) ; foreach ( $ attributes as $ key => $ val ) { $ object [ $ key ] = $ val ; } return $ object ; }
Array attributes to object class ArrayObject.
@param array $attributes
@return ArrayObject
Array attributes to object class ArrayObject .