PHP Validation

ValidationError
in package

Simple Validation Error implementation.

Table of Contents

Constants

EMPTY  = self::EXPECT_BOOL + self::ACTUAL_MIXED + 2
EQUAL  = self::EXPECT_STRING + self::ACTUAL_MIXED + 3
FORMAT  = self::EXPECT_STRING + self::ACTUAL_STRING + 1
IN  = self::EXPECT_ARRAY + self::ACTUAL_MIXED + 1
INSTANCE  = self::EXPECT_MIXED + self::ACTUAL_STRING + 1
LENGTH  = self::EXPECT_INT + self::ACTUAL_STRING + 1
LENGTH_MAX  = self::EXPECT_INT + self::ACTUAL_STRING + 3
LENGTH_MIN  = self::EXPECT_INT + self::ACTUAL_STRING + 2
MAX  = self::EXPECT_NUMERIC + self::ACTUAL_NUMERIC + 2
MIN  = self::EXPECT_NUMERIC + self::ACTUAL_NUMERIC + 1
NOT_EMPTY  = self::EXPECT_BOOL + self::ACTUAL_MIXED + 3
NOT_EQUAL  = self::EXPECT_STRING + self::ACTUAL_MIXED + 4
NOT_IN  = self::EXPECT_ARRAY + self::ACTUAL_MIXED + 2
NOT_INSTANCE  = self::EXPECT_MIXED + self::ACTUAL_STRING + 2
NOT_TYPE  = self::EXPECT_STRING + self::ACTUAL_MIXED + 2
NOT_VALUE  = self::EXPECT_MIXED + self::ACTUAL_MIXED + 2
REGEX  = self::EXPECT_STRING + self::ACTUAL_STRING + 2
REQUIRED  = self::EXPECT_BOOL + self::ACTUAL_MIXED + 1
SIZE  = self::EXPECT_INT + self::ACTUAL_ARRAY + 1
SIZE_MAX  = self::EXPECT_INT + self::ACTUAL_ARRAY + 3
SIZE_MIN  = self::EXPECT_INT + self::ACTUAL_ARRAY + 2
TYPE  = self::EXPECT_STRING + self::ACTUAL_MIXED + 1
VALUE  = self::EXPECT_MIXED + self::ACTUAL_MIXED + 1
ACTUAL_ARRAY  = 0x600
ACTUAL_MIXED  = 0xf00
ACTUAL_NUMERIC  = 0x400
ACTUAL_STRING  = 0x500
EXPECT_ARRAY  = 0x6000
EXPECT_BOOL  = 0x1000
EXPECT_INT  = 0x2000
EXPECT_MIXED  = 0xf000
EXPECT_NUMERIC  = 0x4000
EXPECT_STRING  = 0x5000

Constants

EMPTY

public mixed EMPTY = self::EXPECT_BOOL + self::ACTUAL_MIXED + 2

EQUAL

public mixed EQUAL = self::EXPECT_STRING + self::ACTUAL_MIXED + 3

FORMAT

public mixed FORMAT = self::EXPECT_STRING + self::ACTUAL_STRING + 1

INSTANCE

public mixed INSTANCE = self::EXPECT_MIXED + self::ACTUAL_STRING + 1

LENGTH

public mixed LENGTH = self::EXPECT_INT + self::ACTUAL_STRING + 1

LENGTH_MAX

public mixed LENGTH_MAX = self::EXPECT_INT + self::ACTUAL_STRING + 3

LENGTH_MIN

public mixed LENGTH_MIN = self::EXPECT_INT + self::ACTUAL_STRING + 2

MAX

public mixed MAX = self::EXPECT_NUMERIC + self::ACTUAL_NUMERIC + 2

MIN

public mixed MIN = self::EXPECT_NUMERIC + self::ACTUAL_NUMERIC + 1

NOT_EMPTY

public mixed NOT_EMPTY = self::EXPECT_BOOL + self::ACTUAL_MIXED + 3

NOT_EQUAL

public mixed NOT_EQUAL = self::EXPECT_STRING + self::ACTUAL_MIXED + 4

NOT_IN

public mixed NOT_IN = self::EXPECT_ARRAY + self::ACTUAL_MIXED + 2

NOT_INSTANCE

public mixed NOT_INSTANCE = self::EXPECT_MIXED + self::ACTUAL_STRING + 2

NOT_TYPE

public mixed NOT_TYPE = self::EXPECT_STRING + self::ACTUAL_MIXED + 2

NOT_VALUE

public mixed NOT_VALUE = self::EXPECT_MIXED + self::ACTUAL_MIXED + 2

REGEX

public mixed REGEX = self::EXPECT_STRING + self::ACTUAL_STRING + 2

REQUIRED

public mixed REQUIRED = self::EXPECT_BOOL + self::ACTUAL_MIXED + 1

SIZE_MAX

public mixed SIZE_MAX = self::EXPECT_INT + self::ACTUAL_ARRAY + 3

SIZE_MIN

public mixed SIZE_MIN = self::EXPECT_INT + self::ACTUAL_ARRAY + 2

TYPE

public mixed TYPE = self::EXPECT_STRING + self::ACTUAL_MIXED + 1

VALUE

public mixed VALUE = self::EXPECT_MIXED + self::ACTUAL_MIXED + 1

        
On this page

Search results