Table of Contents
-
getInstance()
: self
-
setLanguage()
: void
-
setThrowEarly()
: void
-
setTranslator()
: void
-
shouldThrowEarly()
: bool
-
translate()
: string
-
value()
: AssertBuilder
getInstance()
public
static getInstance() : self
Return values
self
—
setLanguage()
public
static setLanguage(string $lang) : void
Parameters
-
$lang
: string
-
Return values
void
—
setThrowEarly()
public
setThrowEarly(bool $flag) : void
Parameters
-
$flag
: bool
-
Return values
void
—
setTranslator()
public
setTranslator(TranslatorInterface $translator) : void
Parameters
-
$translator
: TranslatorInterface
-
Return values
void
—
shouldThrowEarly()
public
shouldThrowEarly() : bool
Return values
bool
—
translate()
public
translate(string $message[, array<string|int, mixed> $context = [] ]) : string
Parameters
-
$message
: string
-
-
$context
: array<string|int, mixed>
= []
-
Return values
string
—
value()
public
static value(mixed $value[, string|null $attributeName = null ][, bool $isValueSensitive = false ]) : AssertBuilder
Parameters
-
$value
: mixed
-
-
$attributeName
: string|null
= null
-
-
$isValueSensitive
: bool
= false
-
Return values
AssertBuilder
—