Auth0-PHP

Assert
in package

Class Assert.

Table of Contents

$subjects  : array<string|int, mixed>
__construct()  : mixed
ArrayProcessor Constructor.
isArray()  : void
Check that a variable is an array and is not empty.
isEmail()  : void
Check that a variable is a non-empty string that contains a valid email address.
isPermissions()  : void
Check for invalid permissions with an array of permissions.
isString()  : void
Check that a variable is a string and is not empty.

Properties

$subjects

private array<string|int, mixed> $subjects

Methods

__construct()

ArrayProcessor Constructor.

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

isArray()

Check that a variable is an array and is not empty.

public isArray() : void
Tags
throws
Exception

when subject is not an array or is empty

Return values
void

isEmail()

Check that a variable is a non-empty string that contains a valid email address.

public isEmail() : void
Tags
throws
Exception

when subject is not a valid email address

Return values
void

isPermissions()

Check for invalid permissions with an array of permissions.

public isPermissions() : void
Tags
throws
Exception

when subject is not a permissions array or is empty

Return values
void

isString()

Check that a variable is a string and is not empty.

public isString() : void
Tags
throws
Exception

when subject is not a string or is empty

Return values
void

Search results