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
Return values
void —isEmail()
Check that a variable is a non-empty string that contains a valid email address.
public
isEmail() : void
Tags
Return values
void —isPermissions()
Check for invalid permissions with an array of permissions.
public
isPermissions() : void
Tags
Return values
void —isString()
Check that a variable is a string and is not empty.
public
isString() : void