Files
ploi-core/app/DataTransferObjects/Support/PaginatedDataCollection.php
Ralph J. Smit d22bb52f35 Apply style
2023-09-26 23:47:24 +02:00

24 lines
709 B
PHP

<?php
namespace App\DataTransferObjects\Support;
use Spatie\LaravelData\Support\Wrapping\WrapExecutionType;
class PaginatedDataCollection extends \Spatie\LaravelData\PaginatedDataCollection
{
public function transform(bool $transformValues = true, WrapExecutionType $wrapExecutionType = WrapExecutionType::Disabled, bool $mapPropertyNames = true): array
{
$transformer = new DataCollectableTransformer(
$this->dataClass,
$transformValues,
$wrapExecutionType,
$mapPropertyNames,
$this->getPartialTrees(),
$this->items,
$this->getWrap(),
);
return $transformer->transform();
}
}