PHP 8.3.31
Preview: ArrayObject.php Size: 952 B
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Casts/ArrayObject.php

<?php

namespace Illuminate\Database\Eloquent\Casts;

use ArrayObject as BaseArrayObject;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Collection;
use JsonSerializable;

/**
 * @template TKey of array-key
 * @template TItem
 *
 * @extends  \ArrayObject<TKey, TItem>
 */
class ArrayObject extends BaseArrayObject implements Arrayable, JsonSerializable
{
    /**
     * Get a collection containing the underlying array.
     *
     * @return \Illuminate\Support\Collection
     */
    public function collect()
    {
        return new Collection($this->getArrayCopy());
    }

    /**
     * Get the instance as an array.
     *
     * @return array
     */
    public function toArray()
    {
        return $this->getArrayCopy();
    }

    /**
     * Get the array that should be JSON serialized.
     *
     * @return array
     */
    public function jsonSerialize(): array
    {
        return $this->getArrayCopy();
    }
}

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
952 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.27 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.73 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.39 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.86 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
2.78 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
2.73 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
965 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.93 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.13 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).