PHP Class Assert\AssertionChain

Datei anzeigen Open project: beberlei/assert

Public Methods

Method Description
__call ( string $methodName, array $args ) : AssertionChain Call assertion on the current value in the chain.
__construct ( $value, $defaultMessage = null, $defaultPropertyPath = null )
all ( ) : AssertionChain Switch chain into validation mode for an array of values.
nullOr ( ) : AssertionChain Switch chain into mode allowing nulls, ignoring further assertions.
setAssertionClassName ( string $className )

Method Details

__call() public method

Call assertion on the current value in the chain.
public __call ( string $methodName, array $args ) : AssertionChain
$methodName string
$args array
return AssertionChain

__construct() public method

public __construct ( $value, $defaultMessage = null, $defaultPropertyPath = null )

all() public method

Switch chain into validation mode for an array of values.
public all ( ) : AssertionChain
return AssertionChain

nullOr() public method

Switch chain into mode allowing nulls, ignoring further assertions.
public nullOr ( ) : AssertionChain
return AssertionChain

setAssertionClassName() public method

public setAssertionClassName ( string $className )
$className string