PHP Interface Bolt\Configuration\Validation\ValidatorInterface

Author: Gawain Lynch ([email protected])
Show file Open project: bolt/bolt

Public Methods

Method Description
add ( string $checkName, string | Bolt\Configuration\Validation\ValidationInterface $className, boolean $prepend = false ) Add a check.
check ( string $checkName ) : Response | null Perform a named check.
checks ( ) Perform all checks.
has ( string $checkName ) : boolean
remove ( string $checkName ) Remove a check from the list causing it to be skipped.

Method Details

add() public method

Add a check.
public add ( string $checkName, string | Bolt\Configuration\Validation\ValidationInterface $className, boolean $prepend = false )
$checkName string Name for the check
$className string | Bolt\Configuration\Validation\ValidationInterface Class name, or instance of a ValidationInterface class
$prepend boolean Prepend to the execution list

check() public method

Perform a named check.
public check ( string $checkName ) : Response | null
$checkName string Name of the check to run
return Symfony\Component\HttpFoundation\Response | null

checks() public method

Perform all checks.
public checks ( )

has() public method

public has ( string $checkName ) : boolean
$checkName string
return boolean

remove() public method

Remove a check from the list causing it to be skipped.
public remove ( string $checkName )
$checkName string Name of the check to remove