PHP Trait Flugg\Responder\Traits\ConvertsParameters

Author: Alexander Tømmerås ([email protected])
Afficher le fichier Open project: flugger/laravel-responder

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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.

Method Details

__get() public méthode

Get an input element from the request.
public __get ( string $key ) : mixed
$key string
Résultat mixed

__isset() public méthode

Check if an input element is set on the request.
public __isset ( string $key ) : boolean
$key string
Résultat boolean

all() abstract public méthode

Get all of the input and files for the request.
abstract public all ( ) : array
Résultat array

castBooleans() protected méthode

Cast all string booleans to real boolean values.
protected castBooleans ( mixed $input ) : array
$input mixed
Résultat array

castToBooleanIsDisabled() protected méthode

Checks if the user wants to cast to booleans.
protected castToBooleanIsDisabled ( ) : boolean
Résultat boolean

castValueToBoolean() protected méthode

Cast a given value to a boolean if it is in fact a boolean.
protected castValueToBoolean ( mixed $value ) : mixed
$value mixed
Résultat mixed

convertArrayToSnakeCase() protected méthode

Convert all keys of an array to snake case.
protected convertArrayToSnakeCase ( array $input ) : array
$input array
Résultat array

convertToSnakeCase() protected méthode

Convert a string or array to snake case.
protected convertToSnakeCase ( mixed $input ) : mixed
$input mixed
Résultat mixed

convertToSnakeCaseIsDisabled() protected méthode

Checks if the user wants to convert to snake case.
protected convertToSnakeCaseIsDisabled ( ) : boolean
Résultat boolean

getConvertedParameters() protected méthode

Cast and convert parameters.
protected getConvertedParameters ( ) : array
Résultat array

getInputSource() abstract protected méthode

Get the input source for the request.
abstract protected getInputSource ( ) : Symfony\Component\HttpFoundation\ParameterBag
Résultat Symfony\Component\HttpFoundation\ParameterBag

getValidatorInstance() protected méthode

Get the validator instance for the request.
protected getValidatorInstance ( ) : Illuminate\Contracts\Validation\Validator
Résultat Illuminate\Contracts\Validation\Validator