AssertBuilder
Table of Contents
-
__construct()
: mixed
-
alpha()
: self
-
alphanumeric()
: self
-
array()
: self
-
asCardNumber()
: self
-
asCnpj()
: self
-
asCpf()
: self
-
asDecimal()
: self
-
asDigits()
: self
-
asExtract()
: self
-
asLimit()
: self
-
asLowercase()
: self
-
assert()
: self
-
assocRules()
: self
-
asTrim()
: self
-
asTruncate()
: self
-
asUppercase()
: self
-
between()
: self
-
bool()
: self
-
boolean()
: self
-
country2()
: self
-
country3()
: self
-
currency()
: self
-
date()
: self
-
digits()
: self
-
domain()
: self
-
email()
: self
-
eq()
: self
-
errors()
: array<string|int, mixed>
-
expressionChecks()
: array<string|int, mixed>
-
expressionErrors()
: array<string|int, mixed>
-
expressionHasErrors()
: bool
-
float()
: self
-
get()
: mixed
-
getAttribute()
: string
-
getOriginal()
: mixed
-
getSensitive()
: bool
-
getValue()
: mixed
-
gt()
: self
-
gte()
: self
-
hasErrors()
: bool
-
in()
: self
-
int()
: self
-
integer()
: self
-
ip()
: self
-
ipv4()
: self
-
ipv6()
: self
-
lbetween()
: self
-
lgt()
: self
-
lgte()
: self
-
llt()
: self
-
llte()
: self
-
lt()
: self
-
lte()
: self
-
null()
: self
-
numeric()
: self
-
oneOf()
: self
-
or()
: self
-
req()
: self
-
rules()
: self
-
seq()
: self
-
str()
: self
-
string()
: self
-
url()
: self
-
valid()
: bool
-
validate()
: mixed
__construct()
public
__construct(Assert $assertContext, mixed $value, string|null $attribute, bool $sensitive[, AssertBuilder|null $parent = null ][, array<string|int, mixed>|null $checks = null ][, array<string|int, mixed>|null $errors = null ]) : mixed
Parameters
-
$assertContext
: Assert
-
-
$value
: mixed
-
-
$attribute
: string|null
-
-
$sensitive
: bool
-
-
$parent
: AssertBuilder|null
= null
-
-
$checks
: array<string|int, mixed>|null
= null
-
-
$errors
: array<string|int, mixed>|null
= null
-
Return values
mixed
—
alpha()
public
alpha([string $including = '' ]) : self
Parameters
-
$including
: string
= ''
-
Return values
self
—
alphanumeric()
public
alphanumeric([string $including = '' ]) : self
Parameters
-
$including
: string
= ''
-
Return values
self
—
array()
public
array() : self
Return values
self
—
asCardNumber()
public
asCardNumber() : self
Return values
self
—
asCnpj()
public
asCnpj([bool $format = true ]) : self
Parameters
-
$format
: bool
= true
-
Return values
self
—
asCpf()
public
asCpf([bool $format = true ]) : self
Parameters
-
$format
: bool
= true
-
Return values
self
—
asDecimal()
public
asDecimal([array<string|int, mixed> $decimalSymbol = [',', '.'] ]) : self
Parameters
-
$decimalSymbol
: array<string|int, mixed>
= [',', '.']
-
Return values
self
—
asDigits()
public
asDigits() : self
Return values
self
—
public
asExtract(string $charClass) : self
Parameters
-
$charClass
: string
-
Return values
self
—
asLimit()
public
asLimit(int $size) : self
Parameters
-
$size
: int
-
Return values
self
—
asLowercase()
public
asLowercase() : self
Return values
self
—
assert()
public
assert(mixed $cond, string|null $message, string $ruleName[, array<string|int, mixed> $additionalContext = [] ]) : self
Parameters
-
$cond
: mixed
-
-
$message
: string|null
-
-
$ruleName
: string
-
-
$additionalContext
: array<string|int, mixed>
= []
-
Return values
self
—
assocRules()
public
assocRules(array<string|int, mixed> $rules) : self
Parameters
-
$rules
: array<string|int, mixed>
-
Return values
self
—
asTrim()
public
asTrim() : self
Return values
self
—
asTruncate()
public
asTruncate(int $size[, string $end = '...' ]) : self
Parameters
-
$size
: int
-
-
$end
: string
= '...'
-
Return values
self
—
asUppercase()
public
asUppercase() : self
Return values
self
—
between()
public
between(mixed $x, mixed $y[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$y
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
bool()
public
bool() : self
Return values
self
—
boolean()
public
boolean() : self
Return values
self
—
country2()
public
country2() : self
Return values
self
—
country3()
public
country3() : self
Return values
self
—
currency()
public
currency() : self
Return values
self
—
date()
public
date() : self
Return values
self
—
digits()
public
digits() : self
Return values
self
—
domain()
public
domain() : self
Return values
self
—
email()
public
email() : self
Return values
self
—
eq()
public
eq(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
errors()
public
errors() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
expressionChecks()
public
expressionChecks() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
expressionErrors()
public
expressionErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
expressionHasErrors()
public
expressionHasErrors() : bool
Return values
bool
—
float()
public
float() : self
Return values
self
—
get()
public
get() : mixed
Return values
mixed
—
getAttribute()
public
getAttribute() : string
Return values
string
—
getOriginal()
public
getOriginal() : mixed
Return values
mixed
—
getSensitive()
public
getSensitive() : bool
Return values
bool
—
getValue()
public
getValue() : mixed
Return values
mixed
—
gt()
public
gt(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
gte()
public
gte(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
hasErrors()
public
hasErrors() : bool
Return values
bool
—
in()
public
in(array<string|int, mixed> $x[, string|null $message = null ][, bool $strict = false ]) : self
Parameters
-
$x
: array<string|int, mixed>
-
-
$message
: string|null
= null
-
-
$strict
: bool
= false
-
Return values
self
—
int()
public
int() : self
Return values
self
—
integer()
public
integer() : self
Return values
self
—
ip()
public
ip() : self
Return values
self
—
ipv4()
public
ipv4() : self
Return values
self
—
ipv6()
public
ipv6() : self
Return values
self
—
lbetween()
public
lbetween(int $x, int $y[, string|null $message = null ]) : self
Parameters
-
$x
: int
-
-
$y
: int
-
-
$message
: string|null
= null
-
Return values
self
—
lgt()
public
lgt(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
lgte()
public
lgte(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
llt()
public
llt(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
llte()
public
llte(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
lt()
public
lt(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
lte()
public
lte(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
null()
public
null() : self
Return values
self
—
numeric()
public
numeric() : self
Return values
self
—
oneOf()
public
oneOf(array<string|int, mixed> $x[, string|null $message = null ][, bool $strict = false ]) : self
Parameters
-
$x
: array<string|int, mixed>
-
-
$message
: string|null
= null
-
-
$strict
: bool
= false
-
Return values
self
—
or()
public
or() : self
Return values
self
—
req()
public
req() : self
Return values
self
—
rules()
public
rules(string $rules) : self
Parameters
-
$rules
: string
-
Return values
self
—
seq()
public
seq(mixed $x[, string|null $message = null ]) : self
Parameters
-
$x
: mixed
-
-
$message
: string|null
= null
-
Return values
self
—
str()
public
str() : self
Return values
self
—
string()
public
string() : self
Return values
self
—
url()
public
url() : self
Return values
self
—
valid()
public
valid() : bool
Return values
bool
—
validate()
public
validate() : mixed
Return values
mixed
—