PHP Class Assert\Assert

Afficher le fichier Open project: beberlei/assert Class Usage Examples

Protected Properties

Свойство Type Description
$assertionClass string
$lazyAssertionExceptionClass string

Méthodes publiques

Méthode 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 méthode

Create a lazy assertion object.
public static lazy ( ) : LazyAssertion
Résultat LazyAssertion

that() public static méthode

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
Résultat AssertionChain

thatAll() public static méthode

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
Résultat AssertionChain

thatNullOr() public static méthode

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
Résultat AssertionChain

Property Details

$assertionClass protected_oe static_oe property

protected static string $assertionClass
Résultat string

$lazyAssertionExceptionClass protected_oe static_oe property

protected static string $lazyAssertionExceptionClass
Résultat string