phalconplus Documentation v1.3.0-development
Source
Class PhalconPlus Assert

# Assertion

Methods

- createException(variable $value, variable $message, variable $code, variable $propertyPath, array $constraints) : void
- eq(variable $value1, variable $value2, variable $message, variable $propertyPath) : bool
- notEq(variable $value1, variable $value2, variable $message, variable $propertyPath) : bool
- same(variable $value1, variable $value2, variable $message, variable $propertyPath) : bool
- notEmpty(variable $value, variable $message, variable $propertyPath) : bool
- notNull(variable $value, variable $message, variable $propertyPath) : bool
- notBlank(variable $value, variable $message, variable $propertyPath) : bool | null
- integer(variable $value, variable $message, variable $propertyPath) : bool
- numeric(variable $value, variable $message, variable $propertyPath) : bool
- range(variable $value, int $minValue, int $maxValue, variable $message, variable $propertyPath) : bool
- minLength(variable $value, int $minLength, variable $message, variable $propertyPath, string $encodeing) : bool | null
- maxLength(variable $value, int $maxLength, variable $message, variable $propertyPath, string $encodeing) : bool | null
- betweenLength(variable $value, int $minLength, int $maxLength, variable $message, variable $propertyPath, string $encodeing) : bool | null
- min(variable $value, int $minValue, variable $message, variable $propertyPath) : bool
- max(variable $value, int $maxValue, variable $message, variable $propertyPath) : bool
- contains(variable $value, variable $needle, variable $message, variable $propertyPath, string $encodeing) : bool | null
- notContains(variable $value, variable $needle, variable $message, variable $propertyPath, string $encodeing) : bool | null
- inArray(variable $value, array $choices, variable $message, variable $propertyPath) : void
- keyExists(variable $value, variable $key, variable $message, variable $propertyPath) : bool | null
- isResource(variable $value, variable $message, variable $propertyPath) : bool | null
- isString(variable $value, variable $message, variable $propertyPath) : bool
- isArray(variable $value, variable $message, variable $propertyPath) : bool
- isTraversable(variable $value, variable $message, string $propertyPath) : bool
- isArrayAccessible(variable $value, variable $message, string $propertyPath) : bool
- isCountable(variable $value, variable $message, string $propertyPath) : bool
- isInstanceOf(object $value, variable $classNames, variable $message, variable $propertyPath) : bool
- isJsonString(variable $value, variable $message, variable $propertyPath, variable $obj) : bool
- stringify(variable $value) : void

Methods Details

- protected static function createException(variable $value, variable $message, variable $code, variable $propertyPath, array $constraints)

- public static function eq(variable $value1, variable $value2, variable $message, variable $propertyPath)

- public static function notEq(variable $value1, variable $value2, variable $message, variable $propertyPath)

- public static function same(variable $value1, variable $value2, variable $message, variable $propertyPath)

- public static function notEmpty(variable $value, variable $message, variable $propertyPath)

- public static function notNull(variable $value, variable $message, variable $propertyPath)

- public static function notBlank(variable $value, variable $message, variable $propertyPath)

- public static function integer(variable $value, variable $message, variable $propertyPath)

- public static function numeric(variable $value, variable $message, variable $propertyPath)

- public static function range(variable $value, int $minValue, int $maxValue, variable $message, variable $propertyPath)

- public static function minLength(variable $value, int $minLength, variable $message, variable $propertyPath, string $encodeing)

- public static function maxLength(variable $value, int $maxLength, variable $message, variable $propertyPath, string $encodeing)

- public static function betweenLength(variable $value, int $minLength, int $maxLength, variable $message, variable $propertyPath, string $encodeing)

- public static function min(variable $value, int $minValue, variable $message, variable $propertyPath)

- public static function max(variable $value, int $maxValue, variable $message, variable $propertyPath)

- public static function contains(variable $value, variable $needle, variable $message, variable $propertyPath, string $encodeing)

- public static function notContains(variable $value, variable $needle, variable $message, variable $propertyPath, string $encodeing)

- public static function inArray(variable $value, array $choices, variable $message, variable $propertyPath)

- public static function keyExists(variable $value, variable $key, variable $message, variable $propertyPath)

- public static function isResource(variable $value, variable $message, variable $propertyPath)

- public static function isString(variable $value, variable $message, variable $propertyPath)

- public static function isArray(variable $value, variable $message, variable $propertyPath)

- public static function isTraversable(variable $value, variable $message, string $propertyPath)

- public static function isArrayAccessible(variable $value, variable $message, string $propertyPath)

- public static function isCountable(variable $value, variable $message, string $propertyPath)

- public static function isInstanceOf(object $value, variable $classNames, variable $message, variable $propertyPath)

- public static function isJsonString(variable $value, variable $message, variable $propertyPath, variable $obj)

- private static function stringify(variable $value)