Assertation

AssertBuilder
in package

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

Methods

__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

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

asExtract()

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

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

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

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

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

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

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

validate()

public validate() : mixed
Return values
mixed

        

Search results