PHP Class Assert\Assert

Datei anzeigen Open project: beberlei/assert Class Usage Examples

Protected Properties

Property Type Description
$assertionClass string
$lazyAssertionExceptionClass string

Public Methods

Method Description
lazy ( ) : LazyAssertion Create a lazy assertion object.
that ( mixed $value, string $defaultMessage = null, string $defaultPropertyPath = null ) : AssertionChain Start validation on a value, returns {@link AssertionChain}
thatAll ( mixed $values, string $defaultMessage = null, string $defaultPropertyPath = null ) : AssertionChain Start validation on a set of values, returns {@link AssertionChain}
thatNullOr ( mixed $value, string $defaultMessage = null, string $defaultPropertyPath = null ) : AssertionChain Start validation and allow NULL, returns {@link AssertionChain}

Method Details

lazy() public static method

Create a lazy assertion object.
public static lazy ( ) : LazyAssertion
return LazyAssertion

that() public static method

The invocation of this method starts an assertion chain that is happening on the passed value.
public static that ( mixed $value, string $defaultMessage = null, string $defaultPropertyPath = null ) : AssertionChain
$value mixed
$defaultMessage string
$defaultPropertyPath string
return AssertionChain

thatAll() public static method

Start validation on a set of values, returns {@link AssertionChain}
public static thatAll ( mixed $values, string $defaultMessage = null, string $defaultPropertyPath = null ) : AssertionChain
$values mixed
$defaultMessage string
$defaultPropertyPath string
return AssertionChain

thatNullOr() public static method

Start validation and allow NULL, returns {@link AssertionChain}
public static thatNullOr ( mixed $value, string $defaultMessage = null, string $defaultPropertyPath = null ) : AssertionChain
$value mixed
$defaultMessage string
$defaultPropertyPath string
return AssertionChain

Property Details

$assertionClass protected_oe static_oe property

protected static string $assertionClass
return string

$lazyAssertionExceptionClass protected_oe static_oe property

protected static string $lazyAssertionExceptionClass
return string