added comments to custom data pipe class

This commit is contained in:
pushrbx 2023-01-21 23:27:41 +00:00
parent e4ece66acc
commit 79b7a0f657

View File

@ -4,6 +4,7 @@ namespace App\DataPipes;
use Illuminate\Http\Request;
use Illuminate\Support\Collection;
use Spatie\LaravelData\DataPipes\DataPipe;
use Spatie\LaravelData\Support\DataClass;
/**
@ -11,7 +12,7 @@ use Spatie\LaravelData\Support\DataClass;
*
* This makes the mapping of requests to dtos easier: The controller action only has to have the dto as argument.
*/
final class MapRouteParametersDataPipe implements \Spatie\LaravelData\DataPipes\DataPipe
final class MapRouteParametersDataPipe implements DataPipe
{
public function handle(mixed $payload, DataClass $class, Collection $properties): Collection
{