PHP Класс Assert\Assert

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$assertionClass string
$lazyAssertionExceptionClass string

Открытые методы

Метод Описание
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}

Описание методов

lazy() публичный статический метод

Create a lazy assertion object.
public static lazy ( ) : LazyAssertion
Результат LazyAssertion

that() публичный статический метод

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
Результат AssertionChain

thatAll() публичный статический метод

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
Результат AssertionChain

thatNullOr() публичный статический метод

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
Результат AssertionChain

Описание свойств

$assertionClass защищенное статическое свойство

protected static string $assertionClass
Результат string

$lazyAssertionExceptionClass защищенное статическое свойство

protected static string $lazyAssertionExceptionClass
Результат string