PHP Interface Airship\Engine\Contract\Security\FilterInterface

Afficher le fichier Open project: paragonie/airship

Méthodes publiques

Méthode Description
addCallback ( callable $func ) : Airship\Engine\Contract\Security\FilterInterface Add a callback to this filter (supports more than one)
process ( mixed $data ) : mixed Process data using the filter rules.
setDefault ( $value ) : Airship\Engine\Contract\Security\FilterInterface Set the default value (not applicable to booleans)
setIndex ( string $index ) : Airship\Engine\Contract\Security\FilterInterface
setType ( string $typeIndicator ) : Airship\Engine\Contract\Security\FilterInterface Sets the expected input type (e.g. string, boolean)

Method Details

addCallback() public méthode

Add a callback to this filter (supports more than one)
public addCallback ( callable $func ) : Airship\Engine\Contract\Security\FilterInterface
$func callable
Résultat Airship\Engine\Contract\Security\FilterInterface

process() public méthode

Process data using the filter rules.
public process ( mixed $data ) : mixed
$data mixed
Résultat mixed

setDefault() public méthode

Set the default value (not applicable to booleans)
public setDefault ( $value ) : Airship\Engine\Contract\Security\FilterInterface
$value
Résultat Airship\Engine\Contract\Security\FilterInterface

setIndex() public méthode

public setIndex ( string $index ) : Airship\Engine\Contract\Security\FilterInterface
$index string
Résultat Airship\Engine\Contract\Security\FilterInterface

setType() public méthode

Sets the expected input type (e.g. string, boolean)
public setType ( string $typeIndicator ) : Airship\Engine\Contract\Security\FilterInterface
$typeIndicator string
Résultat Airship\Engine\Contract\Security\FilterInterface