AirLay backend

VariableValidator extends Validator
in package

Table of Contents

$exception  : string
$name  : string
$variable  : mixed
__construct()  : mixed
factory()  : VariableValidator
isNotEmpty()  : self
isNotNull()  : self
isType()  : $this
isValue()  : self
getMessageForIsNotEmpty()  : string
getMessageForIsNotNull()  : string
getMessageForIsType()  : string
getMessageForIsValue()  : string
getValue()  : mixed

Properties

$exception

protected string $exception = InvalidArgumentException::class

Methods

__construct()

public __construct(string $name, mixed $variable[, mixed $exception = InvalidArgumentException::class ]) : mixed
Parameters
$name : string
$variable : mixed
$exception : mixed = InvalidArgumentException::class
Return values
mixed

factory()

public static factory(string $name, mixed $variable[, mixed $exception = InvalidArgumentException::class ]) : VariableValidator
Parameters
$name : string
$variable : mixed
$exception : mixed = InvalidArgumentException::class
Return values
VariableValidator

isNotEmpty()

public isNotEmpty() : self
Return values
self

isNotNull()

public isNotNull() : self
Return values
self

isType()

public isType(string|array<string|int, string> $type) : $this
Parameters
$type : string|array<string|int, string>
Return values
$this

isValue()

public isValue(array<string|int, mixed> $values) : self
Parameters
$values : array<string|int, mixed>
Return values
self

getMessageForIsNotEmpty()

protected getMessageForIsNotEmpty() : string
Return values
string

getMessageForIsNotNull()

protected getMessageForIsNotNull() : string
Return values
string

getMessageForIsType()

protected getMessageForIsType(string $info) : string
Parameters
$info : string
Return values
string

getMessageForIsValue()

protected getMessageForIsValue(string $info) : string
Parameters
$info : string
Return values
string

Search results