public static function createFromMutable(\ArrayObject $arrayObject) : ImmutableArrayObject
    {
        return new static($arrayObject->getArrayCopy(), $arrayObject->getFlags(), $arrayObject->getIteratorClass());
    }
public static function createFromMutable(\ArrayObject $arrayObject) : ImmutableArrayObject
    {
        return new static($arrayObject->getArrayCopy(), $arrayObject->getFlags(), $arrayObject->getIteratorClass());
    }
public static function createFromMutable ( \ ArrayObject $ arrayObject ) : ImmutableArrayObject { return new static ( $ arrayObject -> getArrayCopy ( ) , $ arrayObject -> getFlags ( ) , $ arrayObject -> getIteratorClass ( ) ) ; }
Creates a new ImmutableArrayObject from the given mutable ArrayObject instance.

@param \ArrayObject $arrayObject The mutable array object.

@return ImmutableArrayObject
Creates a new ImmutableArrayObject from the given mutable ArrayObject instance .