GSB_AppliMVC

Mixin
in

Table of Contents

allAlnum()  : mixed
allAlpha()  : mixed
allBoolean()  : mixed
allClassExists()  : mixed
allContains()  : mixed
allCount()  : mixed
allCountBetween()  : mixed
allDigits()  : mixed
allDirectory()  : mixed
allEmail()  : mixed
allEndsWith()  : mixed
allEq()  : mixed
allFalse()  : mixed
allFile()  : mixed
allFileExists()  : mixed
allFloat()  : mixed
allGreaterThan()  : mixed
allGreaterThanEq()  : mixed
allImplementsInterface()  : mixed
allInArray()  : mixed
allInteger()  : mixed
allIntegerish()  : mixed
allInterfaceExists()  : mixed
allIp()  : mixed
allIpv4()  : mixed
allIpv6()  : mixed
allIsAnyOf()  : mixed
allIsAOf()  : mixed
allIsArray()  : mixed
allIsArrayAccessible()  : mixed
allIsCallable()  : mixed
allIsCountable()  : mixed
allIsEmpty()  : mixed
allIsInstanceOf()  : mixed
allIsInstanceOfAny()  : mixed
allIsIterable()  : mixed
allIsList()  : mixed
allIsMap()  : mixed
allIsNonEmptyList()  : mixed
allIsNonEmptyMap()  : mixed
allIsNotA()  : mixed
allIsTraversable()  : mixed
allKeyExists()  : mixed
allKeyNotExists()  : mixed
allLength()  : mixed
allLengthBetween()  : mixed
allLessThan()  : mixed
allLessThanEq()  : mixed
allLower()  : mixed
allMaxCount()  : mixed
allMaxLength()  : mixed
allMethodExists()  : mixed
allMethodNotExists()  : mixed
allMinCount()  : mixed
allMinLength()  : mixed
allNatural()  : mixed
allNotContains()  : mixed
allNotEmpty()  : mixed
allNotEndsWith()  : mixed
allNotEq()  : mixed
allNotFalse()  : mixed
allNotInstanceOf()  : mixed
allNotNull()  : mixed
allNotRegex()  : mixed
allNotSame()  : mixed
allNotStartsWith()  : mixed
allNotWhitespaceOnly()  : mixed
allNull()  : mixed
allNumeric()  : mixed
allObject()  : mixed
allOneOf()  : mixed
allPropertyExists()  : mixed
allPropertyNotExists()  : mixed
allRange()  : mixed
allReadable()  : mixed
allRegex()  : mixed
allResource()  : mixed
allSame()  : mixed
allScalar()  : mixed
allStartsWith()  : mixed
allStartsWithLetter()  : mixed
allString()  : mixed
allStringNotEmpty()  : mixed
allSubclassOf()  : mixed
allThrows()  : mixed
allTrue()  : mixed
allUnicodeLetters()  : mixed
allUniqueValues()  : mixed
allUpper()  : mixed
allUuid()  : mixed
allValidArrayKey()  : mixed
allWritable()  : mixed
nullOrAlnum()  : mixed
nullOrAlpha()  : mixed
nullOrBoolean()  : mixed
nullOrClassExists()  : mixed
nullOrContains()  : mixed
nullOrCount()  : mixed
nullOrCountBetween()  : mixed
nullOrDigits()  : mixed
nullOrDirectory()  : mixed
nullOrEmail()  : mixed
nullOrEndsWith()  : mixed
nullOrEq()  : mixed
nullOrFalse()  : mixed
nullOrFile()  : mixed
nullOrFileExists()  : mixed
nullOrFloat()  : mixed
nullOrGreaterThan()  : mixed
nullOrGreaterThanEq()  : mixed
nullOrImplementsInterface()  : mixed
nullOrInArray()  : mixed
nullOrInteger()  : mixed
nullOrIntegerish()  : mixed
nullOrInterfaceExists()  : mixed
nullOrIp()  : mixed
nullOrIpv4()  : mixed
nullOrIpv6()  : mixed
nullOrIsAnyOf()  : mixed
nullOrIsAOf()  : mixed
nullOrIsArray()  : mixed
nullOrIsArrayAccessible()  : mixed
nullOrIsCallable()  : mixed
nullOrIsCountable()  : mixed
nullOrIsEmpty()  : mixed
nullOrIsInstanceOf()  : mixed
nullOrIsInstanceOfAny()  : mixed
nullOrIsIterable()  : mixed
nullOrIsList()  : mixed
nullOrIsMap()  : mixed
nullOrIsNonEmptyList()  : mixed
nullOrIsNonEmptyMap()  : mixed
nullOrIsNotA()  : mixed
nullOrIsTraversable()  : mixed
nullOrKeyExists()  : mixed
nullOrKeyNotExists()  : mixed
nullOrLength()  : mixed
nullOrLengthBetween()  : mixed
nullOrLessThan()  : mixed
nullOrLessThanEq()  : mixed
nullOrLower()  : mixed
nullOrMaxCount()  : mixed
nullOrMaxLength()  : mixed
nullOrMethodExists()  : mixed
nullOrMethodNotExists()  : mixed
nullOrMinCount()  : mixed
nullOrMinLength()  : mixed
nullOrNatural()  : mixed
nullOrNotContains()  : mixed
nullOrNotEmpty()  : mixed
nullOrNotEndsWith()  : mixed
nullOrNotEq()  : mixed
nullOrNotFalse()  : mixed
nullOrNotInstanceOf()  : mixed
nullOrNotRegex()  : mixed
nullOrNotSame()  : mixed
nullOrNotStartsWith()  : mixed
nullOrNotWhitespaceOnly()  : mixed
nullOrNumeric()  : mixed
nullOrObject()  : mixed
nullOrOneOf()  : mixed
nullOrPropertyExists()  : mixed
nullOrPropertyNotExists()  : mixed
nullOrRange()  : mixed
nullOrReadable()  : mixed
nullOrRegex()  : mixed
nullOrResource()  : mixed
nullOrSame()  : mixed
nullOrScalar()  : mixed
nullOrStartsWith()  : mixed
nullOrStartsWithLetter()  : mixed
nullOrString()  : mixed
nullOrStringNotEmpty()  : mixed
nullOrSubclassOf()  : mixed
nullOrThrows()  : mixed
nullOrTrue()  : mixed
nullOrUnicodeLetters()  : mixed
nullOrUniqueValues()  : mixed
nullOrUpper()  : mixed
nullOrUuid()  : mixed
nullOrValidArrayKey()  : mixed
nullOrWritable()  : mixed

Methods

allAlnum()

public static allAlnum(iteratable<string|int, string> $value[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allAlpha()

public static allAlpha(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allBoolean()

public static allBoolean(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allClassExists()

public static allClassExists(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allContains()

public static allContains(iteratable<string|int, string> $value, string $subString[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$subString : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allCount()

public static allCount(iteratable<string|int, \Countable|array> $array, int $number[, string $message = '' ]) : mixed
Parameters
$array : iteratable<string|int, \Countable|array>
$number : int
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allCountBetween()

public static allCountBetween(iteratable<string|int, \Countable|array> $array, int|float $min, int|float $max[, string $message = '' ]) : mixed
Parameters
$array : iteratable<string|int, \Countable|array>
$min : int|float
$max : int|float
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allDigits()

public static allDigits(iteratable<string|int, string> $value[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allDirectory()

public static allDirectory(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allEmail()

public static allEmail(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allEndsWith()

public static allEndsWith(iteratable<string|int, string> $value, string $suffix[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$suffix : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allEq()

public static allEq(mixed $value, mixed $expect[, string $message = '' ]) : mixed
Parameters
$value : mixed
$expect : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allFalse()

public static allFalse(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allFile()

public static allFile(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allFileExists()

public static allFileExists(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allFloat()

public static allFloat(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allGreaterThan()

public static allGreaterThan(mixed $value, mixed $limit[, string $message = '' ]) : mixed
Parameters
$value : mixed
$limit : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allGreaterThanEq()

public static allGreaterThanEq(mixed $value, mixed $limit[, string $message = '' ]) : mixed
Parameters
$value : mixed
$limit : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allImplementsInterface()

public static allImplementsInterface(mixed $value, mixed $interface[, string $message = '' ]) : mixed
Parameters
$value : mixed
$interface : mixed
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $interface

psalm-assert

iterable<class-string> $value

throws
InvalidArgumentException
Return values
mixed

allInArray()

public static allInArray(mixed $value, array<string|int, mixed> $values[, string $message = '' ]) : mixed
Parameters
$value : mixed
$values : array<string|int, mixed>
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allInteger()

public static allInteger(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allIntegerish()

public static allIntegerish(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allInterfaceExists()

public static allInterfaceExists(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allIp()

public static allIp(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allIpv4()

public static allIpv4(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allIpv6()

public static allIpv6(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allIsAnyOf()

public static allIsAnyOf(iteratable<string|int, object|string> $value, array<string|int, string> $classes[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, object|string>
$classes : array<string|int, string>
$message : string = ''
Tags
psalm-pure
psalm-param

array $classes

throws
InvalidArgumentException
Return values
mixed

allIsAOf()

public static allIsAOf(iteratable<string|int, object|string> $value, string $class[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, object|string>
$class : string
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $class

psalm-assert

iterable<ExpectedType|class-string> $value

throws
InvalidArgumentException
Return values
mixed

allIsArray()

public static allIsArray(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allIsArrayAccessible()

public static allIsArrayAccessible(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable<array|ArrayAccess> $value

throws
InvalidArgumentException
Return values
mixed

allIsCallable()

public static allIsCallable(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allIsCountable()

public static allIsCountable(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allIsEmpty()

public static allIsEmpty(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allIsInstanceOf()

public static allIsInstanceOf(mixed $value, string|object $class[, string $message = '' ]) : mixed
Parameters
$value : mixed
$class : string|object
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $class

psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allIsInstanceOfAny()

public static allIsInstanceOfAny(mixed $value, array<string|int, object|string> $classes[, string $message = '' ]) : mixed
Parameters
$value : mixed
$classes : array<string|int, object|string>
$message : string = ''
Tags
psalm-pure
psalm-param

array $classes

throws
InvalidArgumentException
Return values
mixed

allIsIterable()

public static allIsIterable(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allIsList()

public static allIsList(mixed $array[, string $message = '' ]) : mixed
Parameters
$array : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $array

throws
InvalidArgumentException
Return values
mixed

allIsMap()

public static allIsMap(mixed $array[, string $message = '' ]) : mixed
Parameters
$array : mixed
$message : string = ''
Tags
psalm-pure
psalm-template

T

psalm-param

iterable<mixed|array> $array

psalm-assert

iterable<array<string, T>> $array

throws
InvalidArgumentException
Return values
mixed

allIsNonEmptyList()

public static allIsNonEmptyList(mixed $array[, string $message = '' ]) : mixed
Parameters
$array : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $array

throws
InvalidArgumentException
Return values
mixed

allIsNonEmptyMap()

public static allIsNonEmptyMap(mixed $array[, string $message = '' ]) : mixed
Parameters
$array : mixed
$message : string = ''
Tags
psalm-pure
psalm-template

T

psalm-param

iterable<mixed|array> $array

throws
InvalidArgumentException
Return values
mixed

allIsNotA()

public static allIsNotA(iteratable<string|int, object|string> $value, string $class[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, object|string>
$class : string
$message : string = ''
Tags
psalm-pure
psalm-template

UnexpectedType of object

psalm-param

class-string $class

throws
InvalidArgumentException
Return values
mixed

allIsTraversable()

public static allIsTraversable(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

deprecated

use "isIterable" or "isInstanceOf" instead

throws
InvalidArgumentException
Return values
mixed

allKeyExists()

public static allKeyExists(iteratable<string|int, array<string|int, mixed>> $array, string|int $key[, string $message = '' ]) : mixed
Parameters
$array : iteratable<string|int, array<string|int, mixed>>
$key : string|int
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allKeyNotExists()

public static allKeyNotExists(iteratable<string|int, array<string|int, mixed>> $array, string|int $key[, string $message = '' ]) : mixed
Parameters
$array : iteratable<string|int, array<string|int, mixed>>
$key : string|int
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allLength()

public static allLength(iteratable<string|int, string> $value, int $length[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$length : int
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allLengthBetween()

public static allLengthBetween(iteratable<string|int, string> $value, int|float $min, int|float $max[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$min : int|float
$max : int|float
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allLessThan()

public static allLessThan(mixed $value, mixed $limit[, string $message = '' ]) : mixed
Parameters
$value : mixed
$limit : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allLessThanEq()

public static allLessThanEq(mixed $value, mixed $limit[, string $message = '' ]) : mixed
Parameters
$value : mixed
$limit : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allLower()

public static allLower(iteratable<string|int, string> $value[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allMaxCount()

public static allMaxCount(iteratable<string|int, \Countable|array> $array, int|float $max[, string $message = '' ]) : mixed
Parameters
$array : iteratable<string|int, \Countable|array>
$max : int|float
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allMaxLength()

public static allMaxLength(iteratable<string|int, string> $value, int|float $max[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$max : int|float
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allMethodExists()

public static allMethodExists(iteratable<string|int, string|object> $classOrObject, mixed $method[, string $message = '' ]) : mixed
Parameters
$classOrObject : iteratable<string|int, string|object>
$method : mixed
$message : string = ''
Tags
psalm-pure
psalm-param

iterable<class-string|object> $classOrObject

throws
InvalidArgumentException
Return values
mixed

allMethodNotExists()

public static allMethodNotExists(iteratable<string|int, string|object> $classOrObject, mixed $method[, string $message = '' ]) : mixed
Parameters
$classOrObject : iteratable<string|int, string|object>
$method : mixed
$message : string = ''
Tags
psalm-pure
psalm-param

iterable<class-string|object> $classOrObject

throws
InvalidArgumentException
Return values
mixed

allMinCount()

public static allMinCount(iteratable<string|int, \Countable|array> $array, int|float $min[, string $message = '' ]) : mixed
Parameters
$array : iteratable<string|int, \Countable|array>
$min : int|float
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allMinLength()

public static allMinLength(iteratable<string|int, string> $value, int|float $min[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$min : int|float
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNatural()

public static allNatural(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allNotContains()

public static allNotContains(iteratable<string|int, string> $value, string $subString[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$subString : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNotEmpty()

public static allNotEmpty(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNotEndsWith()

public static allNotEndsWith(iteratable<string|int, string> $value, string $suffix[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$suffix : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNotEq()

public static allNotEq(mixed $value, mixed $expect[, string $message = '' ]) : mixed
Parameters
$value : mixed
$expect : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allNotFalse()

public static allNotFalse(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNotInstanceOf()

public static allNotInstanceOf(mixed $value, string|object $class[, string $message = '' ]) : mixed
Parameters
$value : mixed
$class : string|object
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $class

throws
InvalidArgumentException
Return values
mixed

allNotNull()

public static allNotNull(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNotRegex()

public static allNotRegex(iteratable<string|int, string> $value, string $pattern[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$pattern : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNotSame()

public static allNotSame(mixed $value, mixed $expect[, string $message = '' ]) : mixed
Parameters
$value : mixed
$expect : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNotStartsWith()

public static allNotStartsWith(iteratable<string|int, string> $value, string $prefix[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$prefix : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNotWhitespaceOnly()

public static allNotWhitespaceOnly(iteratable<string|int, string> $value[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allNull()

public static allNull(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allNumeric()

public static allNumeric(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allObject()

public static allObject(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allOneOf()

public static allOneOf(mixed $value, array<string|int, mixed> $values[, string $message = '' ]) : mixed
Parameters
$value : mixed
$values : array<string|int, mixed>
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allPropertyExists()

public static allPropertyExists(iteratable<string|int, string|object> $classOrObject, mixed $property[, string $message = '' ]) : mixed
Parameters
$classOrObject : iteratable<string|int, string|object>
$property : mixed
$message : string = ''
Tags
psalm-pure
psalm-param

iterable<class-string|object> $classOrObject

throws
InvalidArgumentException
Return values
mixed

allPropertyNotExists()

public static allPropertyNotExists(iteratable<string|int, string|object> $classOrObject, mixed $property[, string $message = '' ]) : mixed
Parameters
$classOrObject : iteratable<string|int, string|object>
$property : mixed
$message : string = ''
Tags
psalm-pure
psalm-param

iterable<class-string|object> $classOrObject

throws
InvalidArgumentException
Return values
mixed

allRange()

public static allRange(mixed $value, mixed $min, mixed $max[, string $message = '' ]) : mixed
Parameters
$value : mixed
$min : mixed
$max : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allReadable()

public static allReadable(iteratable<string|int, string> $value[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allRegex()

public static allRegex(iteratable<string|int, string> $value, string $pattern[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$pattern : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allResource()

public static allResource(mixed $value[, string|null $type = null ][, string $message = '' ]) : mixed
Parameters
$value : mixed
$type : string|null = null

type of resource this should be. @see https://www.php.net/manual/en/function.get-resource-type.php

$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allSame()

public static allSame(mixed $value, mixed $expect[, string $message = '' ]) : mixed
Parameters
$value : mixed
$expect : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allScalar()

public static allScalar(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allStartsWith()

public static allStartsWith(iteratable<string|int, string> $value, string $prefix[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$prefix : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allStartsWithLetter()

public static allStartsWithLetter(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allString()

public static allString(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allStringNotEmpty()

public static allStringNotEmpty(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allSubclassOf()

public static allSubclassOf(mixed $value, string|object $class[, string $message = '' ]) : mixed
Parameters
$value : mixed
$class : string|object
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $class

psalm-assert

iterable<class-string|ExpectedType> $value

throws
InvalidArgumentException
Return values
mixed

allThrows()

public static allThrows(iteratable<string|int, Closure$expression[, string $class = 'Exception' ][, string $message = '' ]) : mixed
Parameters
$expression : iteratable<string|int, Closure>
$class : string = 'Exception'
$message : string = ''
Tags
psalm-param

class-string $class

throws
InvalidArgumentException
Return values
mixed

allTrue()

public static allTrue(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allUnicodeLetters()

public static allUnicodeLetters(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allUniqueValues()

public static allUniqueValues(iteratable<string|int, array<string|int, mixed>> $values[, string $message = '' ]) : mixed
Parameters
$values : iteratable<string|int, array<string|int, mixed>>
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

allUpper()

public static allUpper(iteratable<string|int, string> $value[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allUuid()

public static allUuid(iteratable<string|int, string> $value[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

allValidArrayKey()

public static allValidArrayKey(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

iterable $value

throws
InvalidArgumentException
Return values
mixed

allWritable()

public static allWritable(iteratable<string|int, string> $value[, string $message = '' ]) : mixed
Parameters
$value : iteratable<string|int, string>
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrAlnum()

public static nullOrAlnum(null|string $value[, string $message = '' ]) : mixed
Parameters
$value : null|string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrAlpha()

public static nullOrAlpha(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrBoolean()

public static nullOrBoolean(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|bool $value

throws
InvalidArgumentException
Return values
mixed

nullOrClassExists()

public static nullOrClassExists(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-assert

null|class-string $value

throws
InvalidArgumentException
Return values
mixed

nullOrContains()

public static nullOrContains(null|string $value, string $subString[, string $message = '' ]) : mixed
Parameters
$value : null|string
$subString : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrCount()

public static nullOrCount(null|Countable|array<string|int, mixed> $array, int $number[, string $message = '' ]) : mixed
Parameters
$array : null|Countable|array<string|int, mixed>
$number : int
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrCountBetween()

public static nullOrCountBetween(null|Countable|array<string|int, mixed> $array, int|float $min, int|float $max[, string $message = '' ]) : mixed
Parameters
$array : null|Countable|array<string|int, mixed>
$min : int|float
$max : int|float
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrDigits()

public static nullOrDigits(null|string $value[, string $message = '' ]) : mixed
Parameters
$value : null|string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrDirectory()

public static nullOrDirectory(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrEmail()

public static nullOrEmail(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrEndsWith()

public static nullOrEndsWith(null|string $value, string $suffix[, string $message = '' ]) : mixed
Parameters
$value : null|string
$suffix : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrEq()

public static nullOrEq(mixed $value, mixed $expect[, string $message = '' ]) : mixed
Parameters
$value : mixed
$expect : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrFalse()

public static nullOrFalse(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|false $value

throws
InvalidArgumentException
Return values
mixed

nullOrFile()

public static nullOrFile(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrFileExists()

public static nullOrFileExists(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrFloat()

public static nullOrFloat(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|float $value

throws
InvalidArgumentException
Return values
mixed

nullOrGreaterThan()

public static nullOrGreaterThan(mixed $value, mixed $limit[, string $message = '' ]) : mixed
Parameters
$value : mixed
$limit : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrGreaterThanEq()

public static nullOrGreaterThanEq(mixed $value, mixed $limit[, string $message = '' ]) : mixed
Parameters
$value : mixed
$limit : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrImplementsInterface()

public static nullOrImplementsInterface(mixed $value, mixed $interface[, string $message = '' ]) : mixed
Parameters
$value : mixed
$interface : mixed
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $interface

psalm-assert

null|class-string $value

throws
InvalidArgumentException
Return values
mixed

nullOrInArray()

public static nullOrInArray(mixed $value, array<string|int, mixed> $values[, string $message = '' ]) : mixed
Parameters
$value : mixed
$values : array<string|int, mixed>
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrInteger()

public static nullOrInteger(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|int $value

throws
InvalidArgumentException
Return values
mixed

nullOrIntegerish()

public static nullOrIntegerish(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|numeric $value

throws
InvalidArgumentException
Return values
mixed

nullOrInterfaceExists()

public static nullOrInterfaceExists(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-assert

null|class-string $value

throws
InvalidArgumentException
Return values
mixed

nullOrIp()

public static nullOrIp(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrIpv4()

public static nullOrIpv4(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrIpv6()

public static nullOrIpv6(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrIsAnyOf()

public static nullOrIsAnyOf(null|object|string $value, array<string|int, string> $classes[, string $message = '' ]) : mixed
Parameters
$value : null|object|string
$classes : array<string|int, string>
$message : string = ''
Tags
psalm-pure
psalm-param

array $classes

throws
InvalidArgumentException
Return values
mixed

nullOrIsAOf()

public static nullOrIsAOf(null|object|string $value, string $class[, string $message = '' ]) : mixed
Parameters
$value : null|object|string
$class : string
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $class

psalm-assert

null|ExpectedType|class-string $value

throws
InvalidArgumentException
Return values
mixed

nullOrIsArray()

public static nullOrIsArray(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|array $value

throws
InvalidArgumentException
Return values
mixed

nullOrIsArrayAccessible()

public static nullOrIsArrayAccessible(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|array|ArrayAccess $value

throws
InvalidArgumentException
Return values
mixed

nullOrIsCallable()

public static nullOrIsCallable(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|callable $value

throws
InvalidArgumentException
Return values
mixed

nullOrIsCountable()

public static nullOrIsCountable(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|countable $value

throws
InvalidArgumentException
Return values
mixed

nullOrIsEmpty()

public static nullOrIsEmpty(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

empty $value

throws
InvalidArgumentException
Return values
mixed

nullOrIsInstanceOf()

public static nullOrIsInstanceOf(mixed $value, string|object $class[, string $message = '' ]) : mixed
Parameters
$value : mixed
$class : string|object
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $class

psalm-assert

null|ExpectedType $value

throws
InvalidArgumentException
Return values
mixed

nullOrIsInstanceOfAny()

public static nullOrIsInstanceOfAny(mixed $value, array<string|int, object|string> $classes[, string $message = '' ]) : mixed
Parameters
$value : mixed
$classes : array<string|int, object|string>
$message : string = ''
Tags
psalm-pure
psalm-param

array $classes

throws
InvalidArgumentException
Return values
mixed

nullOrIsIterable()

public static nullOrIsIterable(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|iterable $value

throws
InvalidArgumentException
Return values
mixed

nullOrIsList()

public static nullOrIsList(mixed $array[, string $message = '' ]) : mixed
Parameters
$array : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|list $array

throws
InvalidArgumentException
Return values
mixed

nullOrIsMap()

public static nullOrIsMap(mixed $array[, string $message = '' ]) : mixed
Parameters
$array : mixed
$message : string = ''
Tags
psalm-pure
psalm-template

T

psalm-param

null|mixed|array $array

psalm-assert

null|array<string, T> $array

throws
InvalidArgumentException
Return values
mixed

nullOrIsNonEmptyList()

public static nullOrIsNonEmptyList(mixed $array[, string $message = '' ]) : mixed
Parameters
$array : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|non-empty-list $array

throws
InvalidArgumentException
Return values
mixed

nullOrIsNonEmptyMap()

public static nullOrIsNonEmptyMap(mixed $array[, string $message = '' ]) : mixed
Parameters
$array : mixed
$message : string = ''
Tags
psalm-pure
psalm-template

T

psalm-param

null|mixed|array $array

throws
InvalidArgumentException
Return values
mixed

nullOrIsNotA()

public static nullOrIsNotA(null|object|string $value, string $class[, string $message = '' ]) : mixed
Parameters
$value : null|object|string
$class : string
$message : string = ''
Tags
psalm-pure
psalm-template

UnexpectedType of object

psalm-param

class-string $class

throws
InvalidArgumentException
Return values
mixed

nullOrIsTraversable()

public static nullOrIsTraversable(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|iterable $value

deprecated

use "isIterable" or "isInstanceOf" instead

throws
InvalidArgumentException
Return values
mixed

nullOrKeyExists()

public static nullOrKeyExists(null|array<string|int, mixed> $array, string|int $key[, string $message = '' ]) : mixed
Parameters
$array : null|array<string|int, mixed>
$key : string|int
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrKeyNotExists()

public static nullOrKeyNotExists(null|array<string|int, mixed> $array, string|int $key[, string $message = '' ]) : mixed
Parameters
$array : null|array<string|int, mixed>
$key : string|int
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrLength()

public static nullOrLength(null|string $value, int $length[, string $message = '' ]) : mixed
Parameters
$value : null|string
$length : int
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrLengthBetween()

public static nullOrLengthBetween(null|string $value, int|float $min, int|float $max[, string $message = '' ]) : mixed
Parameters
$value : null|string
$min : int|float
$max : int|float
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrLessThan()

public static nullOrLessThan(mixed $value, mixed $limit[, string $message = '' ]) : mixed
Parameters
$value : mixed
$limit : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrLessThanEq()

public static nullOrLessThanEq(mixed $value, mixed $limit[, string $message = '' ]) : mixed
Parameters
$value : mixed
$limit : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrLower()

public static nullOrLower(null|string $value[, string $message = '' ]) : mixed
Parameters
$value : null|string
$message : string = ''
Tags
psalm-pure
psalm-assert

null|lowercase-string $value

throws
InvalidArgumentException
Return values
mixed

nullOrMaxCount()

public static nullOrMaxCount(null|Countable|array<string|int, mixed> $array, int|float $max[, string $message = '' ]) : mixed
Parameters
$array : null|Countable|array<string|int, mixed>
$max : int|float
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrMaxLength()

public static nullOrMaxLength(null|string $value, int|float $max[, string $message = '' ]) : mixed
Parameters
$value : null|string
$max : int|float
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrMethodExists()

public static nullOrMethodExists(null|string|object $classOrObject, mixed $method[, string $message = '' ]) : mixed
Parameters
$classOrObject : null|string|object
$method : mixed
$message : string = ''
Tags
psalm-pure
psalm-param

null|class-string|object $classOrObject

throws
InvalidArgumentException
Return values
mixed

nullOrMethodNotExists()

public static nullOrMethodNotExists(null|string|object $classOrObject, mixed $method[, string $message = '' ]) : mixed
Parameters
$classOrObject : null|string|object
$method : mixed
$message : string = ''
Tags
psalm-pure
psalm-param

null|class-string|object $classOrObject

throws
InvalidArgumentException
Return values
mixed

nullOrMinCount()

public static nullOrMinCount(null|Countable|array<string|int, mixed> $array, int|float $min[, string $message = '' ]) : mixed
Parameters
$array : null|Countable|array<string|int, mixed>
$min : int|float
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrMinLength()

public static nullOrMinLength(null|string $value, int|float $min[, string $message = '' ]) : mixed
Parameters
$value : null|string
$min : int|float
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrNatural()

public static nullOrNatural(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|int $value

throws
InvalidArgumentException
Return values
mixed

nullOrNotContains()

public static nullOrNotContains(null|string $value, string $subString[, string $message = '' ]) : mixed
Parameters
$value : null|string
$subString : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrNotEmpty()

public static nullOrNotEmpty(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrNotEndsWith()

public static nullOrNotEndsWith(null|string $value, string $suffix[, string $message = '' ]) : mixed
Parameters
$value : null|string
$suffix : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrNotEq()

public static nullOrNotEq(mixed $value, mixed $expect[, string $message = '' ]) : mixed
Parameters
$value : mixed
$expect : mixed
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrNotFalse()

public static nullOrNotFalse(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrNotInstanceOf()

public static nullOrNotInstanceOf(mixed $value, string|object $class[, string $message = '' ]) : mixed
Parameters
$value : mixed
$class : string|object
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $class

throws
InvalidArgumentException
Return values
mixed

nullOrNotRegex()

public static nullOrNotRegex(null|string $value, string $pattern[, string $message = '' ]) : mixed
Parameters
$value : null|string
$pattern : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrNotSame()

public static nullOrNotSame(mixed $value, mixed $expect[, string $message = '' ]) : mixed
Parameters
$value : mixed
$expect : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrNotStartsWith()

public static nullOrNotStartsWith(null|string $value, string $prefix[, string $message = '' ]) : mixed
Parameters
$value : null|string
$prefix : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrNotWhitespaceOnly()

public static nullOrNotWhitespaceOnly(null|string $value[, string $message = '' ]) : mixed
Parameters
$value : null|string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrNumeric()

public static nullOrNumeric(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|numeric $value

throws
InvalidArgumentException
Return values
mixed

nullOrObject()

public static nullOrObject(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|object $value

throws
InvalidArgumentException
Return values
mixed

nullOrOneOf()

public static nullOrOneOf(mixed $value, array<string|int, mixed> $values[, string $message = '' ]) : mixed
Parameters
$value : mixed
$values : array<string|int, mixed>
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrPropertyExists()

public static nullOrPropertyExists(null|string|object $classOrObject, mixed $property[, string $message = '' ]) : mixed
Parameters
$classOrObject : null|string|object
$property : mixed
$message : string = ''
Tags
psalm-pure
psalm-param

null|class-string|object $classOrObject

throws
InvalidArgumentException
Return values
mixed

nullOrPropertyNotExists()

public static nullOrPropertyNotExists(null|string|object $classOrObject, mixed $property[, string $message = '' ]) : mixed
Parameters
$classOrObject : null|string|object
$property : mixed
$message : string = ''
Tags
psalm-pure
psalm-param

null|class-string|object $classOrObject

throws
InvalidArgumentException
Return values
mixed

nullOrRange()

public static nullOrRange(mixed $value, mixed $min, mixed $max[, string $message = '' ]) : mixed
Parameters
$value : mixed
$min : mixed
$max : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrReadable()

public static nullOrReadable(null|string $value[, string $message = '' ]) : mixed
Parameters
$value : null|string
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrRegex()

public static nullOrRegex(null|string $value, string $pattern[, string $message = '' ]) : mixed
Parameters
$value : null|string
$pattern : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrResource()

public static nullOrResource(mixed $value[, string|null $type = null ][, string $message = '' ]) : mixed
Parameters
$value : mixed
$type : string|null = null

type of resource this should be. @see https://www.php.net/manual/en/function.get-resource-type.php

$message : string = ''
Tags
psalm-pure
psalm-assert

null|resource $value

throws
InvalidArgumentException
Return values
mixed

nullOrSame()

public static nullOrSame(mixed $value, mixed $expect[, string $message = '' ]) : mixed
Parameters
$value : mixed
$expect : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrScalar()

public static nullOrScalar(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|scalar $value

throws
InvalidArgumentException
Return values
mixed

nullOrStartsWith()

public static nullOrStartsWith(null|string $value, string $prefix[, string $message = '' ]) : mixed
Parameters
$value : null|string
$prefix : string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrStartsWithLetter()

public static nullOrStartsWithLetter(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrString()

public static nullOrString(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|string $value

throws
InvalidArgumentException
Return values
mixed

nullOrStringNotEmpty()

public static nullOrStringNotEmpty(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|non-empty-string $value

throws
InvalidArgumentException
Return values
mixed

nullOrSubclassOf()

public static nullOrSubclassOf(mixed $value, string|object $class[, string $message = '' ]) : mixed
Parameters
$value : mixed
$class : string|object
$message : string = ''
Tags
psalm-pure
psalm-template

ExpectedType of object

psalm-param

class-string $class

psalm-assert

null|class-string|ExpectedType $value

throws
InvalidArgumentException
Return values
mixed

nullOrThrows()

public static nullOrThrows(null|Closure $expression[, string $class = 'Exception' ][, string $message = '' ]) : mixed
Parameters
$expression : null|Closure
$class : string = 'Exception'
$message : string = ''
Tags
psalm-param

class-string $class

throws
InvalidArgumentException
Return values
mixed

nullOrTrue()

public static nullOrTrue(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|true $value

throws
InvalidArgumentException
Return values
mixed

nullOrUnicodeLetters()

public static nullOrUnicodeLetters(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrUniqueValues()

public static nullOrUniqueValues(null|array<string|int, mixed> $values[, string $message = '' ]) : mixed
Parameters
$values : null|array<string|int, mixed>
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

nullOrUpper()

public static nullOrUpper(null|string $value[, string $message = '' ]) : mixed
Parameters
$value : null|string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrUuid()

public static nullOrUuid(null|string $value[, string $message = '' ]) : mixed
Parameters
$value : null|string
$message : string = ''
Tags
psalm-pure
throws
InvalidArgumentException
Return values
mixed

nullOrValidArrayKey()

public static nullOrValidArrayKey(mixed $value[, string $message = '' ]) : mixed
Parameters
$value : mixed
$message : string = ''
Tags
psalm-pure
psalm-assert

null|array-key $value

throws
InvalidArgumentException
Return values
mixed

nullOrWritable()

public static nullOrWritable(null|string $value[, string $message = '' ]) : mixed
Parameters
$value : null|string
$message : string = ''
Tags
throws
InvalidArgumentException
Return values
mixed

Search results