File manager - Edit - /var/www/payraty/inventory_main/vendor/league/fractal/src/Serializer/DataArraySerializer.php
Back
<?php /* * This file is part of the League\Fractal package. * * (c) Phil Sturgeon <me@philsturgeon.uk> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace League\Fractal\Serializer; class DataArraySerializer extends ArraySerializer { /** * Serialize a collection. * * @param string $resourceKey * @param array $data * * @return array */ public function collection($resourceKey, array $data) { return ['data' => $data]; } /** * Serialize an item. * * @param string $resourceKey * @param array $data * * @return array */ public function item($resourceKey, array $data) { return ['data' => $data]; } /** * Serialize null resource. * * @return array */ public function null() { return ['data' => []]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings