AirLay backend

ArrayKeyValidator extends Validator
in package

Table of Contents

$exception  : string
$array  : array<string|int, mixed>
$key  : string
$name  : string
__construct()  : mixed
factory()  : ArrayKeyValidator
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, array<string|int, mixed> $array, string $key[, string $exception = InvalidArgumentException::class ]) : mixed
Parameters
$name : string
$array : array<string|int, mixed>
$key : string
$exception : string = InvalidArgumentException::class
Return values
mixed

factory()

public static factory(string $name, array<string|int, mixed> $array, string $key[, string $exception = InvalidArgumentException::class ]) : ArrayKeyValidator
Parameters
$name : string
$array : array<string|int, mixed>
$key : string
$exception : string = InvalidArgumentException::class
Return values
ArrayKeyValidator

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