Bånder

LaravelDataRequestExtension extends OperationExtension
in package
uses CastsDtoToSchema

Table of Contents

Methods

handle()  : void
parametersFromDto()  : array<string|int, Parameter>
rulesFromDto()  : array<string, mixed>
rulesFromDtoNoRecursion()  : array<string, mixed>
schemaFromDto()  : Schema
expandRules()  : array<string, mixed>
handleRequestData()  : void
unwrapRules()  : array<string, mixed>

Methods

handle()

public handle(Operation $operation, RouteInfo $routeInfo) : void
Parameters
$operation : Operation
$routeInfo : RouteInfo

parametersFromDto()

public parametersFromDto(string $className) : array<string|int, Parameter>
Parameters
$className : string
Tags
throws
ReflectionException
Return values
array<string|int, Parameter>

rulesFromDto()

public rulesFromDto(string $className) : array<string, mixed>
Parameters
$className : string
Tags
throws
ReflectionException
Return values
array<string, mixed>

rulesFromDtoNoRecursion()

public rulesFromDtoNoRecursion(string $className) : array<string, mixed>
Parameters
$className : string
Tags
throws
ReflectionException
Return values
array<string, mixed>

schemaFromDto()

public schemaFromDto(string $className) : Schema
Parameters
$className : string
Return values
Schema

expandRules()

protected expandRules(NestedRules $rule[, string $parentKey = '' ]) : array<string, mixed>
Parameters
$rule : NestedRules
$parentKey : string = ''
Tags
throws
ReflectionException
Return values
array<string, mixed>

handleRequestData()

protected handleRequestData(Operation $operation, ReflectionNamedType $type) : void
Parameters
$operation : Operation
$type : ReflectionNamedType

unwrapRules()

protected unwrapRules(array<string, mixed> $rules) : array<string, mixed>
Parameters
$rules : array<string, mixed>
Tags
throws
ReflectionException
Return values
array<string, mixed>

        
On this page

Search results