mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
added comments to custom data pipe class
This commit is contained in:
parent
e4ece66acc
commit
79b7a0f657
@ -4,6 +4,7 @@ namespace App\DataPipes;
|
|||||||
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
|
use Spatie\LaravelData\DataPipes\DataPipe;
|
||||||
use Spatie\LaravelData\Support\DataClass;
|
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.
|
* 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
|
public function handle(mixed $payload, DataClass $class, Collection $properties): Collection
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user