yxorP Documentation

IsBsonType extends Constraint
in package
Uses ConstraintTrait

Table of Contents

$type  : string
$types  : array<string|int, mixed>
__construct()  : mixed
any()  : LogicalOr
anyOf()  : Constraint
doMatches()  : bool
doToString()  : string
isArray()  : bool
isArrayEmptyOrIndexed()  : bool
isObject()  : bool

Properties

$types

private static array<string|int, mixed> $types = ['double', 'string', 'object', 'array', 'binData', 'undefined', 'objectId', 'bool', 'date', 'null', 'regex', 'dbPointer', 'javascript', 'symbol', 'javascriptWithScope', 'int', 'timestamp', 'long', 'decimal', 'minKey', 'maxKey']

Methods

__construct()

public __construct(string $type) : mixed
Parameters
$type : string
Return values
mixed

any()

public static any() : LogicalOr
Return values
LogicalOr

anyOf()

public static anyOf(string ...$types) : Constraint
Parameters
$types : string
Return values
Constraint

doMatches()

private doMatches(mixed $other) : bool
Parameters
$other : mixed
Return values
bool

doToString()

private doToString() : string
Return values
string

isArray()

private static isArray(mixed $other) : bool
Parameters
$other : mixed
Return values
bool

isArrayEmptyOrIndexed()

private static isArrayEmptyOrIndexed(array<string|int, mixed> $a) : bool
Parameters
$a : array<string|int, mixed>
Return values
bool

isObject()

private static isObject(mixed $other) : bool
Parameters
$other : mixed
Return values
bool

Search results