PHP 클래스 Assert\Assert

파일 보기 프로젝트 열기: beberlei/assert 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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