Файл: vendor/laravel/framework/src/Illuminate/Database/Eloquent/Casts/ArrayObject.php
Строк: 34
<?php
namespace IlluminateDatabaseEloquentCasts;
use ArrayObject as BaseArrayObject;
use IlluminateContractsSupportArrayable;
use JsonSerializable;
class ArrayObject extends BaseArrayObject implements Arrayable, JsonSerializable
{
/**
* Get a collection containing the underlying array.
*
* @return IlluminateSupportCollection
*/
public function collect()
{
return collect($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();
}
}