PHP Трейт Flugg\Responder\Traits\ConvertsParameters

Автор: Alexander Tømmerås ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
__get ( string $key ) : mixed Get an input element from the request.
__isset ( string $key ) : boolean Check if an input element is set on the request.
all ( ) : array Get all of the input and files for the request.

Защищенные методы

Метод Описание
castBooleans ( mixed $input ) : array Cast all string booleans to real boolean values.
castToBooleanIsDisabled ( ) : boolean Checks if the user wants to cast to booleans.
castValueToBoolean ( mixed $value ) : mixed Cast a given value to a boolean if it is in fact a boolean.
convertArrayToSnakeCase ( array $input ) : array Convert all keys of an array to snake case.
convertToSnakeCase ( mixed $input ) : mixed Convert a string or array to snake case.
convertToSnakeCaseIsDisabled ( ) : boolean Checks if the user wants to convert to snake case.
getConvertedParameters ( ) : array Cast and convert parameters.
getInputSource ( ) : Symfony\Component\HttpFoundation\ParameterBag Get the input source for the request.
getValidatorInstance ( ) : Illuminate\Contracts\Validation\Validator Get the validator instance for the request.

Описание методов

__get() публичный Метод

Get an input element from the request.
public __get ( string $key ) : mixed
$key string
Результат mixed

__isset() публичный Метод

Check if an input element is set on the request.
public __isset ( string $key ) : boolean
$key string
Результат boolean

all() абстрактный публичный Метод

Get all of the input and files for the request.
abstract public all ( ) : array
Результат array

castBooleans() защищенный Метод

Cast all string booleans to real boolean values.
protected castBooleans ( mixed $input ) : array
$input mixed
Результат array

castToBooleanIsDisabled() защищенный Метод

Checks if the user wants to cast to booleans.
protected castToBooleanIsDisabled ( ) : boolean
Результат boolean

castValueToBoolean() защищенный Метод

Cast a given value to a boolean if it is in fact a boolean.
protected castValueToBoolean ( mixed $value ) : mixed
$value mixed
Результат mixed

convertArrayToSnakeCase() защищенный Метод

Convert all keys of an array to snake case.
protected convertArrayToSnakeCase ( array $input ) : array
$input array
Результат array

convertToSnakeCase() защищенный Метод

Convert a string or array to snake case.
protected convertToSnakeCase ( mixed $input ) : mixed
$input mixed
Результат mixed

convertToSnakeCaseIsDisabled() защищенный Метод

Checks if the user wants to convert to snake case.
protected convertToSnakeCaseIsDisabled ( ) : boolean
Результат boolean

getConvertedParameters() защищенный Метод

Cast and convert parameters.
protected getConvertedParameters ( ) : array
Результат array

getInputSource() абстрактный защищенный Метод

Get the input source for the request.
abstract protected getInputSource ( ) : Symfony\Component\HttpFoundation\ParameterBag
Результат Symfony\Component\HttpFoundation\ParameterBag

getValidatorInstance() защищенный Метод

Get the validator instance for the request.
protected getValidatorInstance ( ) : Illuminate\Contracts\Validation\Validator
Результат Illuminate\Contracts\Validation\Validator