A

$ Result#attributesProperty in class Result
Result::addAttribute() — Method in class Result

Adds an attribute to the result object.

Rule::assertStatementIsValid() — Method in class Rule

Asserts that the rule statement is valid.

Definition::assertDefinitionIsValid() — Method in class Definition

Asserts that the rule definition is valid.

Definition::arguments() — Method in class Definition

Sets the arguments of the rule (returns object), or gets it if parameter is false or not specified.

Validation::add() — Method in class Validation

Adds a validation string or object as a group to the current validation expression.

Validation::array() — Method in class Validation

Adds array rule. Asserts that the input is an array.

Validation::alpha() — Method in class Validation

Adds alpha rule. Asserts that the input consists of alphabetic characters only.

Validation::alnum() — Method in class Validation

Adds alnum rule. Asserts that the input consists of alphanumeric characters only.

Validation::allowed() — Method in class Validation
.
Validation::accepted() — Method in class Validation

note that strings are treated in a case-insensitive manner.

Validation::arrayHasKey() — Method in class Validation

Adds array.hasKey rule. Asserts that the input array has the given key.

Validation::arrayHasValue() — Method in class Validation

Adds array.hasValue rule. Asserts that the input array contains the given value. Works with scalar types.

Validation::arrayHasDistinct() — Method in class Validation

Adds array.hasDistinct rule. Asserts that the input is a multidimensional array that contains distinct values of the given key.

Validation::arrayIsAssociative() — Method in class Validation

Adds array.isAssociative rule. Asserts that the input is an associative array.

Validation::arrayIsSequential() — Method in class Validation

Adds array.isSequential rule. Asserts that the input is a sequential array.

Validation::arrayIsUnique() — Method in class Validation

Adds array.isUnique rule. Asserts that the input array contains unique values. Works only with one-dimensional arrays.

Validation::arraySubset() — Method in class Validation

Adds array.subset rule. Asserts that the input is an array that contains the given subset. Note that this check applies only to the first dimension of the array.

Validation::ascii() — Method in class Validation
.
Validation::amount() — Method in class Validation
.
Validation::amountDollar() — Method in class Validation

Adds amount.dollar rule. Asserts that the input is a validly formatted amount of USD, where decimal point and thousands separator are optional.

Validation::amountEuro() — Method in class Validation

Adds amount.euro rule. Asserts that the input is a validly formatted amount of EUR, where decimal point and thousands separator are optional.

Validation::arr() — Method in class Validation

Adds arr rule. An alias for the array rule.

Validation::assert() — Method in class Validation

Adds assert rule. An alias for the if rule.

Validation::assertEquals() — Method in class Validation

Adds assert.equals rule. An alias for the if.eq rule.

Validation::assertNotEquals() — Method in class Validation

Adds assert.notEquals rule. An alias for the if.neq rule.

Validation::assertGreaterThan() — Method in class Validation

Adds assert.greaterThan rule. An alias for the if.gt rule.

Validation::assertGreaterThanOrEquals() — Method in class Validation

Adds assert.greaterThanOrEquals rule. An alias for the if.gte rule.

Validation::assertLessThan() — Method in class Validation

Adds assert.lessThan rule. An alias for the if.lt rule.

Validation::assertLessThanOrEquals() — Method in class Validation

Adds assert.lessThanOrEquals rule. An alias for the if.lte rule.

AcceptedClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds accepted rule. Asserts that the input is accepted (equals: "on", "yes", "yeah", "yep", "yo", "ok", "okay", "aye", 1 or "1", true or "true") note that strings are treated in a case-insensitive manner.

AllowedClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds allowed rule. Asserts that the input is allowed (can be empty or have any value, null and empty string are considered valid values).

AlnumClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds alnum rule. Asserts that the input consists of alphanumeric characters only.

AlphaClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds alpha rule. Asserts that the input consists of alphabetic characters only.

AmountClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds amount rule. Asserts that the input contains only numbers, an optional decimal point (comma or dot), and an optional minus (used for amounts of money for example).

AmountDollarClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds amount.dollar rule. Asserts that the input is a validly formatted amount of USD, where decimal point and thousands separator are optional.

AmountEuroClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds amount.euro rule. Asserts that the input is a validly formatted amount of EUR, where decimal point and thousands separator are optional.

ArrClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds arr rule. An alias for the array rule.

ArrayConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds array rule. Asserts that the input is an array.

ArrayHasDistinctClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds array.hasDistinct rule. Asserts that the input is a multidimensional array that contains distinct values of the given key.

ArrayHasKeyClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds array.hasKey rule. Asserts that the input array has the given key.

ArrayHasValueClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds array.hasValue rule. Asserts that the input array contains the given value. Works with scalar types.

ArrayIsAssociativeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds array.isAssociative rule. Asserts that the input is an associative array.

ArrayIsSequentialClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds array.isSequential rule. Asserts that the input is a sequential array.

ArrayIsUniqueClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds array.isUnique rule. Asserts that the input array contains unique values. Works only with one-dimensional arrays.

ArraySubsetClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds array.subset rule. Asserts that the input is an array that contains the given subset. Note that this check applies only to the first dimension of the array.

AsciiClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds ascii rule. Asserts that the input is a string containing only ASCII characters (ASCII compliant string).

AssertClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds assert rule. An alias for the if rule.

AssertEqualsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds assert.equals rule. An alias for the if.eq rule.

AssertGreaterThanClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds assert.greaterThan rule. An alias for the if.gt rule.

AssertGreaterThanOrEqualsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds assert.greaterThanOrEquals rule. An alias for the if.gte rule.

AssertLessThanClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds assert.lessThan rule. An alias for the if.lt rule.

AssertLessThanOrEqualsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds assert.lessThanOrEquals rule. An alias for the if.lte rule.

AssertNotEqualsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds assert.notEquals rule. An alias for the if.neq rule.

Expression::and() — Method in class Expression

Adds AND operator (ampersand: &) (default). Ands the next rule/group.

SmartEnum::array() — Method in class SmartEnum
$ Validator#aliasesProperty in class Validator

Available validation rules aliases.

Validator::addRule() — Method in class Validator

Adds a new rule to the validator.

Validator::addAlias() — Method in class Validator

Adds a new rule alias to the validator.

Validator::addMacro() — Method in class Validator

Adds a new rule macro to the validator.

B

Maker::buildConstraintClass() — Method in class Maker
Maker::buildConstantsClass() — Method in class Maker
Validation::boolean() — Method in class Validation

Adds boolean rule. Asserts that the input is a boolean.

Validation::booleanLike() — Method in class Validation
.
Validation::bit() — Method in class Validation
.
Validation::bitIsOn() — Method in class Validation
.
Validation::bitIsOff() — Method in class Validation
.
Validation::between() — Method in class Validation
.
Validation::base64() — Method in class Validation

Adds base64 rule. Asserts that the input is a valid Base64 encoded string.

Validation::bic() — Method in class Validation
.
Validation::bool() — Method in class Validation

Adds bool rule. An alias for the boolean rule.

Validation::blank() — Method in class Validation

Adds blank rule. An alias for the empty rule.

Base64Class in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds base64 rule. Asserts that the input is a valid Base64 encoded string.

BetweenClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds between rule. Asserts that the input count is between the given values. Works with all data types (null: 0; boolean: 0 or 1; float/integer: number value; string: characters count; array/countable: elements count; object: accessible properties count).

BicClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds bic rule. Asserts that the input is a valid BIC (Bank Identifier Code).

BitClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds bit rule. Asserts that the input is bit (equals: 1 or "1", true; 0 or "0", false).

BitIsOffClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds bit.isOff rule. Asserts that the input is a turned off bit (equals: false, 0 or "0").

BitIsOnClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds bit.isOn rule. Asserts that the input is a turned on bit (equals: true, 1 or "1").

BlankClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds blank rule. An alias for the empty rule.

BoolConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds bool rule. An alias for the boolean rule.

BooleanClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds boolean rule. Asserts that the input is a boolean.

BooleanLikeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds booleanLike rule. Asserts that the input is value that can be parsed as a boolean (TRUE: true, "true", "1", "on", "yes"; FALSE: false, "false", "0", "off", "no", "", null).

$ Expression#bufferProperty in class Expression

Expression string buffer.

Expression::build() — Method in class Expression

Returns the current expression string.

C

Engine::createRuleName() — Method in class Engine

Returns a valid rule name as per convention.

Engine::createRuleArguments() — Method in class Engine

Returns valid rule arguments by stringifing the passed array.

Engine::createRuleStatement() — Method in class Engine

Returns a valid rule statement from the passed name and arguments.

Engine::cleanExpression() — Method in class Engine

Cleans (minifies) the validation expression by removing comments and unnecessary whitespace from it.

Maker::clearConstraintsDirectory() — Method in class Maker
Result::count() — Method in class Result

Countable::count() interface implementation.

Rule::createErrorMessage() — Method in class Rule

Creates an error message for the rule using the currently available variables or the passed ones.

Definition::callback() — Method in class Definition

Sets the callback of the rule (returns object), or gets it if parameter is false or not specified.

Definition::comparison() — Method in class Definition

Sets the comparison of the rule (returns object), or gets it if parameter is false or not specified.

Memoizer::clear() — Method in class Memoizer
Utility::castToArray() — Method in class Utility

Casts any variable (including objects) to an array recursively.

Validation::callback() — Method in class Validation

Writes a rule to the current validation expression that executes the passed callback.

Validation::createRuleStatement() — Method in class Validation

Returns a valid rule statement from the passed name and arguments.

Validation::callable() — Method in class Validation

Adds callable rule. Asserts that the input is a callable.

Validation::countable() — Method in class Validation

Adds countable rule. Asserts that the input is a countable.

Validation::cntrl() — Method in class Validation

Adds cntrl rule. Asserts that the input consists of control characters only.

Validation::count() — Method in class Validation
.
Validation::country() — Method in class Validation
.
Validation::calenderDay() — Method in class Validation
.
Validation::calenderMonth() — Method in class Validation
.
Validation::color() — Method in class Validation
.
Validation::colorHex() — Method in class Validation

Adds color.hex rule. Asserts that the input is a valid CSS HEX color.

Validation::colorHexShort() — Method in class Validation

Adds color.hexShort rule. Asserts that the input is a valid CSS 3-Char-HEX color.

Validation::colorHexLong() — Method in class Validation

Adds color.hexLong rule. Asserts that the input is a valid CSS 6-Char-HEX color.

Validation::colorHexAlpha() — Method in class Validation
color.
Validation::colorRgb() — Method in class Validation

Adds color.rgb rule. Asserts that the input is a valid CSS RGB color.

Validation::colorRgba() — Method in class Validation

Adds color.rgba rule. Asserts that the input is a valid CSS RGBA color.

Validation::colorRgbNew() — Method in class Validation

Adds color.rgb.new rule. Asserts that the input is a valid CSS4 RGB color.

Validation::colorHsl() — Method in class Validation

Adds color.hsl rule. Asserts that the input is a valid CSS HSL color.

Validation::colorHsla() — Method in class Validation

Adds color.hsla rule. Asserts that the input is a valid CSS HSLA color.

Validation::colorHslNew() — Method in class Validation

Adds color.hsl.new rule. Asserts that the input is a valid CSS4 HSL color.

Validation::colorKeyword() — Method in class Validation

Adds color.keyword rule. Asserts that the input is a valid CSS YYY color.

Validation::currency() — Method in class Validation
.
Validation::currencyName() — Method in class Validation
.
Validation::creditcard() — Method in class Validation

Adds creditcard rule. Asserts that the input is a valid credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardVisa() — Method in class Validation

Adds creditcard.visa rule. Asserts that the input is a valid Visa credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardMastercard() — Method in class Validation

Adds creditcard.mastercard rule. Asserts that the input is a valid Mastercard credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardDiscover() — Method in class Validation

Adds creditcard.discover rule. Asserts that the input is a valid Discover credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardAmericanExpress() — Method in class Validation

Adds creditcard.americanExpress rule. Asserts that the input is a valid American Express credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardDinersClub() — Method in class Validation

Adds creditcard.dinersClub rule. Asserts that the input is a valid Diners Club credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardJcb() — Method in class Validation

Adds creditcard.jcb rule. Asserts that the input is a valid JCB credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardMaestro() — Method in class Validation

Adds creditcard.maestro rule. Asserts that the input is a valid Maestro credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardChinaUnionPay() — Method in class Validation

Adds creditcard.chinaUnionPay rule. Asserts that the input is a valid China UnionPay credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardInstaPayment() — Method in class Validation

Adds creditcard.instaPayment rule. Asserts that the input is a valid InstaPayment credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardLaser() — Method in class Validation

Adds creditcard.laser rule. Asserts that the input is a valid Laser credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardUatp() — Method in class Validation

Adds creditcard.uatp rule. Asserts that the input is a valid UATP credit card number, balanced spaces and/or dashes are allowed.

Validation::creditcardMir() — Method in class Validation

Adds creditcard.mir rule. Asserts that the input is a valid MIR Payment System card number, balanced spaces and/or dashes are allowed.

Validation::cvv() — Method in class Validation
.
Validation::choice() — Method in class Validation

Adds choice rule. An alias for the in rule.

Validation::cakeday() — Method in class Validation

Adds cakeday rule. An alias for the datetime.birthday rule.

ConstraintClass in namespace MAKS\Mighty\Validation

Validates any data using the passed validation expression.

Constraint::check() — Method in class Constraint

Checks if the given value is valid and throws an exception if not.

CallbackClass in namespace MAKS\Mighty\Validation\Constraint

Validates any data using a callback function.

CompoundClass in namespace MAKS\Mighty\Validation\Constraint

Validates any data by compining a set of constraints to build up a Validation Expression.

Compound::combineConstraints() — Method in class Compound
CakedayClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds cakeday rule. An alias for the datetime.birthday rule.

CalenderDayClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds calender.day rule. Asserts that the input looks like a calendar dayin shot or long format ("Mon" or "Monday").

CalenderMonthClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds calender.month rule. Asserts that the input looks like a calendar month in shot or long format ("Jan" or "January").

CallableConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds callable rule. Asserts that the input is a callable.

ChoiceClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds choice rule. An alias for the in rule.

CntrlClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds cntrl rule. Asserts that the input consists of control characters only.

ColorClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color rule. Asserts that the input is a valid CSS color (Color Word, HEX, HEX-Alpha, RGB, RGBA, HSL, HSLA).

ColorHexClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.hex rule. Asserts that the input is a valid CSS HEX color.

ColorHexAlphaClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.hexAlpha rule. Asserts that the input is a valid CSS HEX-Alpha (4 or 8 Chars) color.

ColorHexLongClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.hexLong rule. Asserts that the input is a valid CSS 6-Char-HEX color.

ColorHexShortClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.hexShort rule. Asserts that the input is a valid CSS 3-Char-HEX color.

ColorHslClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.hsl rule. Asserts that the input is a valid CSS HSL color.

ColorHslNewClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.hsl.new rule. Asserts that the input is a valid CSS4 HSL color.

ColorHslaClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.hsla rule. Asserts that the input is a valid CSS HSLA color.

ColorKeywordClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.keyword rule. Asserts that the input is a valid CSS YYY color.

ColorRgbClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.rgb rule. Asserts that the input is a valid CSS RGB color.

ColorRgbNewClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.rgb.new rule. Asserts that the input is a valid CSS4 RGB color.

ColorRgbaClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds color.rgba rule. Asserts that the input is a valid CSS RGBA color.

CountClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds count rule. Asserts that the input count is equal to the given value. Works with all data types (null: 0; boolean: 0 or 1; float/integer: number value; string: characters count; array/countable: elements count; object: accessible properties count).

CountableClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds countable rule. Asserts that the input is a countable.

CountryClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds country rule. Asserts that the input is a valid country code (default: "ISO 3166-1 alpha-2"; long: "ISO 3166-1 alpha-3").

CreditcardClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard rule. Asserts that the input is a valid credit card number, balanced spaces and/or dashes are allowed.

CreditcardAmericanExpressClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.americanExpress rule. Asserts that the input is a valid American Express credit card number, balanced spaces and/or dashes are allowed.

CreditcardChinaUnionPayClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.chinaUnionPay rule. Asserts that the input is a valid China UnionPay credit card number, balanced spaces and/or dashes are allowed.

CreditcardDinersClubClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.dinersClub rule. Asserts that the input is a valid Diners Club credit card number, balanced spaces and/or dashes are allowed.

CreditcardDiscoverClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.discover rule. Asserts that the input is a valid Discover credit card number, balanced spaces and/or dashes are allowed.

CreditcardInstaPaymentClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.instaPayment rule. Asserts that the input is a valid InstaPayment credit card number, balanced spaces and/or dashes are allowed.

CreditcardJcbClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.jcb rule. Asserts that the input is a valid JCB credit card number, balanced spaces and/or dashes are allowed.

CreditcardLaserClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.laser rule. Asserts that the input is a valid Laser credit card number, balanced spaces and/or dashes are allowed.

CreditcardMaestroClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.maestro rule. Asserts that the input is a valid Maestro credit card number, balanced spaces and/or dashes are allowed.

CreditcardMastercardClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.mastercard rule. Asserts that the input is a valid Mastercard credit card number, balanced spaces and/or dashes are allowed.

CreditcardMirClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.mir rule. Asserts that the input is a valid MIR Payment System card number, balanced spaces and/or dashes are allowed.

CreditcardUatpClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.uatp rule. Asserts that the input is a valid UATP credit card number, balanced spaces and/or dashes are allowed.

CreditcardVisaClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds creditcard.visa rule. Asserts that the input is a valid Visa credit card number, balanced spaces and/or dashes are allowed.

CurrencyClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds currency rule. Asserts that the input is a valid currency code (default: "ISO 4217 alpha"; numeric: "ISO 4217 numeric").

CurrencyNameClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds currency.name rule. Asserts that the input is a valid currency name (as in ISO 4217).

CvvClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds cvv rule. Asserts that the input is a valid CVV (Card Security Code).

ValidatableObjectInterface::check() — Method in class ValidatableObjectInterface

Checks the object and throws an exception if validation failed.

ValidatableObjectTrait::check() — Method in class ValidatableObjectTrait
ValidatesAny::check() — Method in class ValidatesAny

Checks if the given value is valid and throws an exception if not.

$ Validator#constraintsProperty in class Validator

Validatable object constraints.

Validator::check() — Method in class Validator

Checks object constraints and throws an exception if validation failed.

Validator::checkAttributes() — Method in class Validator

Checks attributes of the passed validatable object reflection.

Validator::checkConstraint() — Method in class Validator

Checks constraints of the passed validatable object reflection.

Expression::concat() — Method in class Expression

Writes the passed string to the current expression string buffer.

Expression::close() — Method in class Expression

Adds CLOSE operator (closing parenthesis: )). Ends the current group.

Expression::comment() — Method in class Expression

Returns a the passed string as a valid comment.

Expression::createRuleStatement() — Method in class Expression

Returns a valid rule statement from the passed name and arguments.

$ Validator#currentProperty in class Validator

The currently validated data key.

$ Validator#contextProperty in class Validator

Current validation context (available results).

Validator::check() — Method in class Validator

Checks current validator's data against current validator's validations.

Validator::createErrorMessages() — Method in class Validator

Creates error messages for unsuccessful validations and injects the necessary variables into each message.

D

DefinitionClass in namespace MAKS\Mighty\Rule

Rule definition class.

$ Definition#definitionProperty in class Definition

Rule definition array.

Definition::description() — Method in class Definition

Sets the description of the rule (returns object), or gets it if parameter is false or not specified.

Inspector::doSpaceship() — Method in class Inspector

Performs a SPACESHIP on the passed values using the <=> operator.

Inspector::doNegate() — Method in class Inspector

Negates the passed value using the ! operator.

Inspector::doAnd() — Method in class Inspector

Performs a logical AND on the passed values using the && operator.

Inspector::doOr() — Method in class Inspector

Performs a logical OR on the passed values using the || operator.

Inspector::doXor() — Method in class Inspector

Performs a logical XOR on the passed values using the xor operator.

Inspector::doBitwiseNegate() — Method in class Inspector

Negates the passed value using the ~ bitwise operator.

Inspector::doBitwiseAnd() — Method in class Inspector

Performs a bitwise AND on the passed values using the & operator.

Inspector::doBitwiseOr() — Method in class Inspector

Performs a bitwise OR on the passed values using the | operator.

Inspector::doBitwiseXor() — Method in class Inspector

Performs a bitwise XOR on the passed values using the ^ operator.

Inspector::doBitwiseShiftLeft() — Method in class Inspector

Performs a bitwise shift left on the passed values using the << operator.

Inspector::doBitwiseShiftRight() — Method in class Inspector

Performs a bitwise shift right on the passed values using the >> operator.

Serializer::decode() — Method in class Serializer

Decodes the given value using JSON standard.

Validation::digit() — Method in class Validation
.
Validation::domain() — Method in class Validation

Adds domain rule. Asserts that the input is a domain.

Validation::domainIsActive() — Method in class Validation

Adds domain.isActive rule. Asserts that the input is an active domain. Works with domains and emails.

Validation::declined() — Method in class Validation

note that strings are treated in a case-insensitive manner.

Validation::datetime() — Method in class Validation

Adds datetime rule. Asserts that the input is a valid datetime string/object.

Validation::datetimeEq() — Method in class Validation

Adds datetime.eq rule. Asserts that the input is a datetime string/object equal to the given datetime string.

Validation::datetimeLt() — Method in class Validation

the given datetime string.

Validation::datetimeLte() — Method in class Validation

or equal to the given datetime string.

Validation::datetimeGt() — Method in class Validation

the given datetime string.

Validation::datetimeGte() — Method in class Validation

or equal to the given datetime string.

Validation::datetimeBirthday() — Method in class Validation

Adds datetime.birthday rule. Asserts that the input is a datetime string/object that has birthday today. Input should preferably be in "YYYY-MM-DD" format.

Validation::datetimeFormat() — Method in class Validation

Adds datetime.format rule. Asserts that the input is a valid datetime with the given format.

Validation::datetimeFormatGlobal() — Method in class Validation

Adds datetime.format.global rule. Asserts that the input looks like a valid global datetime string as defined in the HTML5 specification.

Validation::datetimeFormatLocal() — Method in class Validation

Adds datetime.format.local rule. Asserts that the input looks like a valid local datetime string as defined in the HTML5 specification.

Validation::datestamp() — Method in class Validation

Adds datestamp rule. Asserts that the input looks like a human datestamp, DMY or MDY format, separated with dot, dash, or slash.

Validation::datestampYmd() — Method in class Validation

Adds datestamp.ymd rule. Asserts that the input looks like a human YMD-formatted datestamp, separated with dot, dash, or slash.

Validation::datestampDmy() — Method in class Validation

Adds datestamp.dmy rule. Asserts that the input looks like a human DMY-formatted datestamp, separated with dot, dash, or slash.

Validation::datestampMdy() — Method in class Validation

Adds datestamp.mdy rule. Asserts that the input looks like a human MDY-formatted datestamp, separated with dot, dash, or slash.

Validation::double() — Method in class Validation

Adds double rule. An alias for the float rule.

Validation::date() — Method in class Validation

Adds date rule. An alias for the datetime rule.

Validation::dateEquals() — Method in class Validation

Adds date.equals rule. An alias for the datetime.eq rule.

Validation::dateBefore() — Method in class Validation

Adds date.before rule. An alias for the datetime.lt rule.

Validation::dateBeforeOrEquals() — Method in class Validation

Adds date.beforeOrEquals rule. An alias for the datetime.lte rule.

Validation::dateAfter() — Method in class Validation

Adds date.after rule. An alias for the datetime.gt rule.

Validation::dateAfterOrEquals() — Method in class Validation

Adds date.afterOrEquals rule. An alias for the datetime.gte rule.

Validation::dateFormat() — Method in class Validation

Adds date.format rule. An alias for the datetime.format rule.

DateClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds date rule. An alias for the datetime rule.

DateAfterClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds date.after rule. An alias for the datetime.gt rule.

DateAfterOrEqualsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds date.afterOrEquals rule. An alias for the datetime.gte rule.

DateBeforeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds date.before rule. An alias for the datetime.lt rule.

DateBeforeOrEqualsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds date.beforeOrEquals rule. An alias for the datetime.lte rule.

DateEqualsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds date.equals rule. An alias for the datetime.eq rule.

DateFormatClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds date.format rule. An alias for the datetime.format rule.

DatestampClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datestamp rule. Asserts that the input looks like a human datestamp, DMY or MDY format, separated with dot, dash, or slash.

DatestampDmyClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datestamp.dmy rule. Asserts that the input looks like a human DMY-formatted datestamp, separated with dot, dash, or slash.

DatestampMdyClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datestamp.mdy rule. Asserts that the input looks like a human MDY-formatted datestamp, separated with dot, dash, or slash.

DatestampYmdClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datestamp.ymd rule. Asserts that the input looks like a human YMD-formatted datestamp, separated with dot, dash, or slash.

DatetimeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime rule. Asserts that the input is a valid datetime string/object.

DatetimeBirthdayClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime.birthday rule. Asserts that the input is a datetime string/object that has birthday today. Input should preferably be in "YYYY-MM-DD" format.

DatetimeEqClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime.eq rule. Asserts that the input is a datetime string/object equal to the given datetime string.

DatetimeFormatClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime.format rule. Asserts that the input is a valid datetime with the given format.

DatetimeFormatGlobalClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime.format.global rule. Asserts that the input looks like a valid global datetime string as defined in the HTML5 specification.

DatetimeFormatLocalClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime.format.local rule. Asserts that the input looks like a valid local datetime string as defined in the HTML5 specification.

DatetimeGtClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime.gt rule. Asserts that the input is a datetime string/object greater than (after) the given datetime string.

DatetimeGteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime.gte rule. Asserts that the input is a datetime string/object greater than (after) or equal to the given datetime string.

DatetimeLtClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime.lt rule. Asserts that the input is a datetime string/object less than (before) the given datetime string.

DatetimeLteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds datetime.lte rule. Asserts that the input is a datetime string/object less than (before) or equal to the given datetime string.

DeclinedClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds declined rule. Asserts that the input is declined (equals: "off", "no", "not", "nope", "neh", "nay", 0 or "0", false or "false") note that strings are treated in a case-insensitive manner.

DigitClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds digit rule. Asserts that the input consists of a digits only (numeric characters).

DomainClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds domain rule. Asserts that the input is a domain.

DomainIsActiveClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds domain.isActive rule. Asserts that the input is an active domain. Works with domains and emails.

DoubleClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds double rule. An alias for the float rule.

$ Validator#dataProperty in class Validator

Currently loaded data.

E

EngineClass in namespace MAKS\Mighty

Validation expression language engine.

Engine::evaluateExpression() — Method in class Engine

Evaluates the passed validation expression string using the provided statements results.

Engine::evaluateBitwiseExpression() — Method in class Engine

Evaluates a bitwise expression string and returns its boolean result.

ExceptionClass in namespace MAKS\Mighty

Exception class.

Maker::extractMetadataFromDocBlockMethod() — Method in class Maker
Rule::execute() — Method in class Rule

Executes the rule against some input (the current one or the passed one).

Definition::example() — Method in class Definition

Sets the example of the rule (returns object), or gets it if parameter is false or not specified.

Serializer::encode() — Method in class Serializer

Encodes the given value using JSON standard.

Utility::expandArrayWildcards() — Method in class Utility

Expands array wildcards by injecting the necessary keys from the available keys in the passed data.

Validation::email() — Method in class Validation

Adds email rule. Asserts that the input is an email address.

Validation::emailWithUnicode() — Method in class Validation
.
Validation::empty() — Method in class Validation
.
Validation::equals() — Method in class Validation

Adds equals rule. Asserts that the input is equal to the given value. Works with scalar types and null. Comparison operator is "==".

Validation::emoji() — Method in class Validation

Adds emoji rule. Asserts that the input contains an emoji.

Validation::esn() — Method in class Validation
.
EmailClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds email rule. Asserts that the input is an email address.

EmailWithUnicodeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds email.withUnicode rule. Asserts that the input is an email address (unicode allowed).

EmojiClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds emoji rule. Asserts that the input contains an emoji.

EmptyConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds empty rule. Asserts that the input is empty using empty() language construct (is blank, i.e. empty string, empty array, false, null, or 0).

EqualsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds equals rule. Asserts that the input is equal to the given value. Works with scalar types and null. Comparison operator is "==".

EsnClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds esn rule. Asserts that the input is a valid ESN (Electronic Serial Number).

$ Validator#errorsProperty in class Validator

Validatable object validation errors.

ExpressionClass in namespace MAKS\Mighty\Validation

Validation expression builder.

$ Validator#errorsProperty in class Validator

Validation errors of the currently loaded data.

Validator::executeRule() — Method in class Validator

Executes a single validation rule.

F

Result::from() — Method in class Result

Result factory method.

Memoizer::forget() — Method in class Memoizer
Validation::float() — Method in class Validation

Adds float rule. Asserts that the input is a float.

Validation::floatLike() — Method in class Validation

Adds floatLike rule. Asserts that the input is a value that can be parsed as a float within the specifed range.

Validation::floatLikeAllowThousands() — Method in class Validation

Adds floatLike.allowThousands rule. Asserts that the input is a value that can be parsed as a float within the specifed range.

Validation::file() — Method in class Validation
.
Validation::fileIsFile() — Method in class Validation

Adds file.isFile rule. Asserts that the input is a file.

Validation::fileIsLink() — Method in class Validation

Adds file.isLink rule. Asserts that the input is a link.

Validation::fileIsDirectory() — Method in class Validation

Adds file.isDirectory rule. Asserts that the input is a directory.

Validation::fileIsExecutable() — Method in class Validation

Adds file.isExecutable rule. Asserts that the input is a file and is executable.

Validation::fileIsWritable() — Method in class Validation

Adds file.isWritable rule. Asserts that the input is a file and is writable.

Validation::fileIsReadable() — Method in class Validation

Adds file.isReadable rule. Asserts that the input is a file and is readable.

Validation::fileIsUploaded() — Method in class Validation

Adds file.isUploaded rule. Asserts that the input is a file that is uploaded via HTTP POST.

Validation::fileSize() — Method in class Validation

Adds file.size rule. Asserts that the input is a file and the size is equal to the given size in bytes.

Validation::fileSizeLte() — Method in class Validation

Adds file.size.lte rule. Asserts that the input is a file and the size is less than or equal to the given size in bytes.

Validation::fileSizeGte() — Method in class Validation

Adds file.size.gte rule. Asserts that the input is a file and the size is greater than or equal to the given size in bytes.

Validation::fileDirname() — Method in class Validation

Adds file.dirname rule. Asserts that the input is a file and its dirname is equal to the given dirname.

Validation::fileBasename() — Method in class Validation

Adds file.basename rule. Asserts that the input is a file and its basename is equal to the given basename.

Validation::fileFilename() — Method in class Validation

Adds file.filename rule. Asserts that the input is a file and its filename is equal to the given filename.

Validation::fileExtension() — Method in class Validation

Adds file.extension rule. Asserts that the input is a file and its extension is equal to the given extension.

Validation::fileMime() — Method in class Validation

Adds file.mime rule. Asserts that the input is a file and its MIME type is one of the given MIME types.

Validation::forbidden() — Method in class Validation
.
Validation::filled() — Method in class Validation

Adds filled rule. An alias for the required rule.

FileClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file rule. Asserts that the input is a file (can be a file, a link, or a directory).

FileBasenameClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.basename rule. Asserts that the input is a file and its basename is equal to the given basename.

FileDirnameClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.dirname rule. Asserts that the input is a file and its dirname is equal to the given dirname.

FileExtensionClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.extension rule. Asserts that the input is a file and its extension is equal to the given extension.

FileFilenameClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.filename rule. Asserts that the input is a file and its filename is equal to the given filename.

FileIsDirectoryClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.isDirectory rule. Asserts that the input is a directory.

FileIsExecutableClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.isExecutable rule. Asserts that the input is a file and is executable.

FileIsFileClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.isFile rule. Asserts that the input is a file.

FileIsLinkClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.isLink rule. Asserts that the input is a link.

FileIsReadableClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.isReadable rule. Asserts that the input is a file and is readable.

FileIsUploadedClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.isUploaded rule. Asserts that the input is a file that is uploaded via HTTP POST.

FileIsWritableClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.isWritable rule. Asserts that the input is a file and is writable.

FileMimeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.mime rule. Asserts that the input is a file and its MIME type is one of the given MIME types.

FileSizeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.size rule. Asserts that the input is a file and the size is equal to the given size in bytes.

FileSizeGteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.size.gte rule. Asserts that the input is a file and the size is greater than or equal to the given size in bytes.

FileSizeLteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds file.size.lte rule. Asserts that the input is a file and the size is less than or equal to the given size in bytes.

FilledClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds filled rule. An alias for the required rule.

FloatConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds float rule. Asserts that the input is a float.

FloatLikeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds floatLike rule. Asserts that the input is a value that can be parsed as a float within the specifed range.

FloatLikeAllowThousandsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds floatLike.allowThousands rule. Asserts that the input is a value that can be parsed as a float within the specifed range.

ForbiddenClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds forbidden rule. Asserts that the input is forbidden (is null or not present).

Validator::fail() — Method in class Validator

G

Engine::getBitwiseTranslationsMap() — Method in class Engine
Maker::getFileDocBlock() — Method in class Maker
Maker::getValidationClassDocBlockMethods() — Method in class Maker
Result::getValue() — Method in class Result

Returns the value of the result object.

Result::getResult() — Method in class Result

Returns the final result of the result object.

Result::getValidations() — Method in class Result

Returns the validations of the result object.

Result::getErrors() — Method in class Result

Returns the errors of the result object.

Result::getMetadata() — Method in class Result

Returns the metadata of the result object.

Result::getAttributes() — Method in class Result

Returns the attributes (any additional variables) of the result object.

Result::getAttribute() — Method in class Result

Returns a property or an attribute from the result object.

Result::getIterator() — Method in class Result

IteratorAggregate::getIterator() interface implementation.

Rule::getStatement() — Method in class Rule

Gets rule statement string.

Rule::getInput() — Method in class Rule

Gets rule input.

Definition::getDefinition() — Method in class Definition

Gets rule definition array.

Definition::getName() — Method in class Definition

Gets the name of the rule.

Definition::getArguments() — Method in class Definition

Gets the arguments of the rule.

Definition::getCallback() — Method in class Definition

Gets the callback of the rule.

Definition::getParameters() — Method in class Definition

Gets the parameters of the rule.

Definition::getComparison() — Method in class Definition

Gets the comparison of the rule.

Definition::getVariables() — Method in class Definition

Gets the variables of the rule.

Definition::getMessage() — Method in class Definition

Gets the message of the rule.

Definition::getDescription() — Method in class Definition

Gets the description of the rule.

Definition::getExample() — Method in class Definition

Gets the example of the rule.

Inspector::getCount() — Method in class Inspector

Returns the count of a variable.

Memoizer::getItem() — Method in class Memoizer
Memoizer::get() — Method in class Memoizer
Utility::getInjectionVariable() — Method in class Utility

Determines whether the variable or the fallback should be used and returns it.

Utility::getArrayValue() — Method in class Utility

Retrieves a value from an array via dot notation.

Validation::getHashedName() — Method in class Validation

Returns a consistent hash for the rule name.

Validation::getHashedNames() — Method in class Validation

Returns an associative array of rule names and their corresponding hashes.

Validation::graph() — Method in class Validation
.
Validation::geolocation() — Method in class Validation
.
Constraint::getMasterValidator() — Method in class Constraint

Returns the master Validator instance that should be used in validation.

Constraint::getValidator() — Method in class Constraint

Gets constraint validator instance.

Constraint::getValidation() — Method in class Constraint

Gets constraint validation expression.

Constraint::getMessages() — Method in class Constraint

Gets constraint rules messages overrides.

Constraint::getStrategy() — Method in class Constraint

Gets constraint strategy.

GeolocationClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds geolocation rule. Asserts that the input is a valid geolocation (latitude and longitude coordinates combination).

GraphClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds graph rule. Asserts that the input consists of graphic characters only (characters that create a visible output).

ValidatableObjectInterface::getValidator() — Method in class ValidatableObjectInterface

Returns an instance of the constraint Validator class associated with this object.

ValidatableObjectTrait::getValidator() — Method in class ValidatableObjectTrait
Validator::getResults() — Method in class Validator

Returns object constraints validation results.

Validator::getErrors() — Method in class Validator

Returns object constraints validation errors.

Validator::getMemoizationKey() — Method in class Validator

Returns a unique identifier for the specifed reflection class name.

Expression::getOperatorChars() — Method in class Expression
Expression::getBehaviorChars() — Method in class Expression
Expression::group() — Method in class Expression

Groups a set of rules inside a pair of parentheses ().

Validator::getResults() — Method in class Validator

Returns validation results (errors and successes).

Validator::getErrors() — Method in class Validator

Returns validation errors.

Validator::getRules() — Method in class Validator

Returns validator's available rules.

Validator::getAliases() — Method in class Validator

Returns validator's available rules aliases.

Validator::getMacros() — Method in class Validator

Returns validator's available rules macros.

H

Exception::handle() — Method in class Exception

Handles the passed callback in a safe context where PHP errors (and exceptions) result in exceptions that can be caught.

Memoizer::has() — Method in class Memoizer

I

InexecutableRuleExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when validation rule execution fails.

InvalidBitwiseExpressionExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when a bitwise expression is invalid.

InvalidRuleAliasExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when an attempt is made to create a rule alias that is invalid.

InvalidRuleDefinitionExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when rule definition is invalid.

InvalidRuleMacroExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when an attempt is made to create a rule macro that is invalid.

InvalidRuleStatementExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when rule statement is invalid.

InvalidValidationExpressionExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when a validation expression is invalid.

$ Rule#inputProperty in class Rule

Rule input value.

InspectorClass in namespace MAKS\Mighty\Support

Inspector class.

Inspector::isEqual() — Method in class Inspector

Checks if $value1 and $value2 are equal using the == operator.

Inspector::isNotEqual() — Method in class Inspector

Checks if $value1 and $value2 are not equal using the != operator.

Inspector::isIdentical() — Method in class Inspector

Checks if $value1 and $value2 are identical using the === operator.

Inspector::isNotIdentical() — Method in class Inspector

Checks if $value1 and $value2 are not identical using the !== operator.

Inspector::isLessThan() — Method in class Inspector

Checks if $value1 is less than $value2 using the < operator.

Inspector::isLessThanOrEqual() — Method in class Inspector

Checks if $value1 is less than or equal to $value2 using the <= operator.

Inspector::isGreaterThan() — Method in class Inspector

Checks if $value1 is greater than $value2 using the > operator.

Inspector::isGreaterThanOrEqual() — Method in class Inspector

Checks if $value1 is greater than or equal to $value2 using the >= operator.

Inspector::isEmpty() — Method in class Inspector

Determines whether a variable is empty or not.

$ Memoizer#itemsProperty in class Memoizer
Utility::injectInString() — Method in class Utility

Injects variables into a string containing placeholders.

Utility::injectInArray() — Method in class Utility

Injects variables into an array containing placeholders as values.

Utility::interpolate() — Method in class Utility

Interpolates context values into text placeholders.

Validation::integer() — Method in class Validation

Adds integer rule. Asserts that the input is an integer.

Validation::iterable() — Method in class Validation

Adds iterable rule. Asserts that the input is an iterable.

Validation::integerLike() — Method in class Validation

Adds integerLike rule. Asserts that the input is a value that can be parsed as an integer within the specifed range.

Validation::integerLikeAllowOctal() — Method in class Validation

Adds integerLike.allowOctal rule. Asserts that the input is a value that can be parsed as an integer within the specifed range and can be in octal notation.

Validation::integerLikeAllowHex() — Method in class Validation

Adds integerLike.allowHex rule. Asserts that the input is a value that can be parsed as an integer within the specifed range and can be in hexadecimal notation.

Validation::ip() — Method in class Validation

Adds ip rule. Asserts that the input is an IP address.

Validation::ipV4() — Method in class Validation

Adds ip.v4 rule. Asserts that the input is an IPv4 address.

Validation::ipV6() — Method in class Validation

Adds ip.v6 rule. Asserts that the input is an IPv6 address.

Validation::ipNotReserved() — Method in class Validation

Adds ip.notReserved rule. Asserts that the input is an IP address not within reserved IPs range.

Validation::ipNotPrivate() — Method in class Validation

Adds ip.notPrivate rule. Asserts that the input is an IP address not within private IPs range.

Validation::image() — Method in class Validation
.
Validation::imageWidth() — Method in class Validation

Adds image.width rule. Asserts that the input is an image and its width is equal to the given width in pixels.

Validation::imageWidthLte() — Method in class Validation

Adds image.width.lte rule. Asserts that the input is an image and its width is less than or equal to the given width in pixels.

Validation::imageWidthGte() — Method in class Validation

Adds image.width.gte rule. Asserts that the input is an image and its width is greater than or equal to the given width in pixels.

Validation::imageHeight() — Method in class Validation

Adds image.height rule. Asserts that the input is an image and its height is equal to the given height in pixels.

Validation::imageHeightLte() — Method in class Validation

Adds image.height.lte rule. Asserts that the input is an image and its height is less than or equal to the given height in pixels.

Validation::imageHeightGte() — Method in class Validation

Adds image.height.gte rule. Asserts that the input is an image and its height is greater than or equal to the given height in pixels.

Validation::imageDimensions() — Method in class Validation

Adds image.dimensions rule. Asserts that the input is an image and its dimensions are less than, equal to, or greater than the given width and height in pixels.

Validation::imageRatio() — Method in class Validation
.
Validation::if() — Method in class Validation

Adds if rule. Checks the condition between the first argument and the second argument, the condition operator can also be specified as the third argument.

Validation::ifEq() — Method in class Validation

Adds if.eq rule. Checks the condition between the first argument and the second argument, the condition operator is "==".

Validation::ifNeq() — Method in class Validation

Adds if.neq rule. Checks the condition between the first argument and the second argument, the condition operator is "!=".

Validation::ifId() — Method in class Validation

Adds if.id rule. Checks the condition between the first argument and the second argument, the condition operator is "===".

Validation::ifNid() — Method in class Validation

Adds if.nid rule. Checks the condition between the first argument and the second argument, the condition operator is "!==".

Validation::ifGt() — Method in class Validation

Adds if.gt rule. Checks the condition between the first argument and the second argument, the condition operator is ">".

Validation::ifGte() — Method in class Validation

Adds if.gte rule. Checks the condition between the first argument and the second argument, the condition operator is ">=".

Validation::ifLt() — Method in class Validation

Adds if.lt rule. Checks the condition between the first argument and the second argument, the condition operator is "<".

Validation::ifLte() — Method in class Validation

Adds if.lte rule. Checks the condition between the first argument and the second argument, the condition operator is "<=".

Validation::in() — Method in class Validation

Adds in rule. Asserts that the input is in the given values. Works with scalar types and null.

Validation::issn() — Method in class Validation
.
Validation::isin() — Method in class Validation
.
Validation::isbn() — Method in class Validation

can be specifed to narrow the pattern.

Validation::imei() — Method in class Validation
.
Validation::imeiSv() — Method in class Validation
.
Validation::iban() — Method in class Validation

. The "ISO 3166-1 alpha-2" country code can be specifed to narrow the pattern.

Validation::int() — Method in class Validation

Adds int rule. An alias for the integer rule.

Validation::is() — Method in class Validation

Adds is rule. An alias for the equals rule.

Constraint::isValid() — Method in class Constraint

Checks if the given value is valid.

IbanClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds iban rule. Asserts that the input is a valid IBAN (International Bank Account Number). The "ISO 3166-1 alpha-2" country code can be specifed to narrow the pattern.

IfConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds if rule. Checks the condition between the first argument and the second argument, the condition operator can also be specified as the third argument.

IfEqClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds if.eq rule. Checks the condition between the first argument and the second argument, the condition operator is "==".

IfGtClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds if.gt rule. Checks the condition between the first argument and the second argument, the condition operator is ">".

IfGteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds if.gte rule. Checks the condition between the first argument and the second argument, the condition operator is ">=".

IfIdClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds if.id rule. Checks the condition between the first argument and the second argument, the condition operator is "===".

IfLtClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds if.lt rule. Checks the condition between the first argument and the second argument, the condition operator is "<".

IfLteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds if.lte rule. Checks the condition between the first argument and the second argument, the condition operator is "<=".

IfNeqClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds if.neq rule. Checks the condition between the first argument and the second argument, the condition operator is "!=".

IfNidClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds if.nid rule. Checks the condition between the first argument and the second argument, the condition operator is "!==".

ImageClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds image rule. Asserts that the input is an image file (jpg, jpeg, png, gif, bmp, svg, or webp).

ImageDimensionsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds image.dimensions rule. Asserts that the input is an image and its dimensions are less than, equal to, or greater than the given width and height in pixels.

ImageHeightClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds image.height rule. Asserts that the input is an image and its height is equal to the given height in pixels.

ImageHeightGteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds image.height.gte rule. Asserts that the input is an image and its height is greater than or equal to the given height in pixels.

ImageHeightLteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds image.height.lte rule. Asserts that the input is an image and its height is less than or equal to the given height in pixels.

ImageRatioClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds image.ratio rule. Asserts that the input is an image and its aspect ratio is equal to the given ratio (ratio must be specified like "16:9").

ImageWidthClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds image.width rule. Asserts that the input is an image and its width is equal to the given width in pixels.

ImageWidthGteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds image.width.gte rule. Asserts that the input is an image and its width is greater than or equal to the given width in pixels.

ImageWidthLteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds image.width.lte rule. Asserts that the input is an image and its width is less than or equal to the given width in pixels.

ImeiClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds imei rule. Asserts that the input is a valid IMEI (International Mobile Station Equipment Identity Number).

ImeiSvClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds imei.sv rule. Asserts that the input is a valid IMEI-SV (International Mobile Station Equipment Identity and Software Version Number).

InClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds in rule. Asserts that the input is in the given values. Works with scalar types and null.

IntConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds int rule. An alias for the integer rule.

IntegerClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds integer rule. Asserts that the input is an integer.

IntegerLikeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds integerLike rule. Asserts that the input is a value that can be parsed as an integer within the specifed range.

IntegerLikeAllowHexClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds integerLike.allowHex rule. Asserts that the input is a value that can be parsed as an integer within the specifed range and can be in hexadecimal notation.

IntegerLikeAllowOctalClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds integerLike.allowOctal rule. Asserts that the input is a value that can be parsed as an integer within the specifed range and can be in octal notation.

IpClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds ip rule. Asserts that the input is an IP address.

IpNotPrivateClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds ip.notPrivate rule. Asserts that the input is an IP address not within private IPs range.

IpNotReservedClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds ip.notReserved rule. Asserts that the input is an IP address not within reserved IPs range.

IpV4Class in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds ip.v4 rule. Asserts that the input is an IPv4 address.

IpV6Class in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds ip.v6 rule. Asserts that the input is an IPv6 address.

IsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds is rule. An alias for the equals rule.

IsbnClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds isbn rule. Asserts that the input is a valid ISBN (International Standard Book Number). The type (10/13) can be specifed to narrow the pattern.

IsinClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds isin rule. Asserts that the input is a valid ISIN (International Securities Identification Number).

IssnClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds issn rule. Asserts that the input is a valid ISSN (International Standard Serial Number).

IterableConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds iterable rule. Asserts that the input is an iterable.

ValidatableObjectInterface::isValid() — Method in class ValidatableObjectInterface

Checks whether or not the object is valid.

ValidatableObjectTrait::isValid() — Method in class ValidatableObjectTrait
ValidatesAny::isValid() — Method in class ValidatesAny

Checks if the given value is valid.

Validator::isOK() — Method in class Validator

Checks whether the validation has passed or not.

J

Validation::json() — Method in class Validation

Adds json rule. Asserts that the input is a valid JSON.

JsonClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds json rule. Asserts that the input is a valid JSON.

L

Validation::lower() — Method in class Validation

Adds lower rule. Asserts that the input consists of lowercase characters only.

Validation::locale() — Method in class Validation

; strict: [ISO 639-1] or [ISO 639-1]_[ISO 3166-1 alpha-2], case-sensitive without canonicalization.

Validation::language() — Method in class Validation
.
Validation::luhn() — Method in class Validation

Adds luhn rule. Asserts that the input passes the Luhn Algorithm check. This rule is mostly used in conjunction with other rules like credit card numbers and identifiers to further check the validity of the subject.

Validation::long() — Method in class Validation

Adds long rule. An alias for the integer rule.

Validation::length() — Method in class Validation

Adds length rule. An alias for the count rule.

LanguageClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds language rule. Asserts that the input is a valid language code (default: "ISO 639-1"; long: "ISO 639-2/T").

LengthClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds length rule. An alias for the count rule.

LocaleClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds locale rule. Asserts that the input is a valid locale identifier (default: [ISO 639-1] or [ISO 639-1][ISO 3166-1 alpha-2], case-insensitive, input is canonicalized before checking (dashes to underscores, no dots or charset); strict: [ISO 639-1] or [ISO 639-1][ISO 3166-1 alpha-2], case-sensitive without canonicalization.

LongClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds long rule. An alias for the integer rule.

LowerClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds lower rule. Asserts that the input consists of lowercase characters only.

LuhnClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds luhn rule. Asserts that the input passes the Luhn Algorithm check. This rule is mostly used in conjunction with other rules like credit card numbers and identifiers to further check the validity of the subject.

$ Validator#labelsProperty in class Validator

Currently loaded validation labels.

Validator::load() — Method in class Validator

Loads the passed path as an array (include $path).

M

MakerClass in namespace MAKS\Mighty

Generates rule constraints classes and markdown table by extracting rules from Validation::class metadata.

Maker::makeConstraints() — Method in class Maker

Make rule constraints classes.

Maker::makeConstants() — Method in class Maker

Makes rules names as constants.

Maker::makeRulesMarkdownTable() — Method in class Maker

Makes rules markdown table.

Definition::message() — Method in class Definition

Sets the message of the rule (returns object), or gets it if parameter is false or not specified.

MemoizerClass in namespace MAKS\Mighty\Support

Memoizer class.

Validation::mac() — Method in class Validation

Adds mac rule. Asserts that the input is a MAC address.

Validation::matches() — Method in class Validation

Adds matches rule. Asserts that the input matches the given pattern. Works with strings only.

Validation::min() — Method in class Validation
.
Validation::max() — Method in class Validation
.
Validation::meta() — Method in class Validation
.
Validation::meid() — Method in class Validation
.
Validation::minmax() — Method in class Validation

Adds minmax rule. An alias for the between rule.

$ Constraint#messagesProperty in class Constraint

Constraint rules messages overrides.

MacClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds mac rule. Asserts that the input is a MAC address.

MatchesClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds matches rule. Asserts that the input matches the given pattern. Works with strings only.

MaxClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds max rule. Asserts that the input count is less than or equal to the given value. Works with all data types (null: 0; boolean: 0 or 1; float/integer: number value; string: characters count; array/countable: elements count; object: accessible properties count).

MeidClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds meid rule. Asserts that the input is a valid MEID (Mobile Equipment Identifier).

MetaClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds meta rule. Asserts that the input is a string containing only meta characters (special characters) (i.e. "@, #, $, ...").

MinClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds min rule. Asserts that the input count is greater than or equal to the given value. Works with all data types (null: 0; boolean: 0 or 1; float/integer: number value; string: characters count; array/countable: elements count; object: accessible properties count).

MinmaxClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds minmax rule. An alias for the between rule.

Expression::macro() — Method in class Expression

Writes a macro to the current expression string.

$ Validator#macrosProperty in class Validator

Available validation rules macros.

$ Validator#messagesProperty in class Validator

Currently loaded validation messages.

N

Definition::name() — Method in class Definition

Sets the name of the rule (returns object), or gets it if parameter is false or not specified.

Validation::new() — Method in class Validation

Creates a new Validation instance that is bound to the default Validator.

Validation::null() — Method in class Validation

Adds null rule. Asserts that the input is null.

Validation::numeric() — Method in class Validation

Adds numeric rule. Asserts that the input is numeric.

Validation::numberIsPositive() — Method in class Validation

Adds number.isPositive rule. Asserts that the input is a positive number.

Validation::numberIsNegative() — Method in class Validation

Adds number.isNegative rule. Asserts that the input is a negative number.

Validation::numberIsEven() — Method in class Validation

Adds number.isEven rule. Asserts that the input is an even number.

Validation::numberIsOdd() — Method in class Validation

Adds number.isOdd rule. Asserts that the input is an odd number.

Validation::numberIsMultipleOf() — Method in class Validation

Adds number.isMultipleOf rule. Asserts that the input is a multiple of the given number.

Validation::numberIsFinite() — Method in class Validation

Adds number.isFinite rule. Asserts that the input is a finite number.

Validation::numberIsInfinite() — Method in class Validation

Adds number.isInfinite rule. Asserts that the input is an infinite number.

Validation::numberIsNan() — Method in class Validation

Adds number.isNan rule. Asserts that the input is a not a number.

Validation::nino() — Method in class Validation
.
NinoClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds nino rule. Asserts that the input is a valid NINO (UK National Insurance Number).

NullConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds null rule. Asserts that the input is null.

NumberIsEvenClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds number.isEven rule. Asserts that the input is an even number.

NumberIsFiniteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds number.isFinite rule. Asserts that the input is a finite number.

NumberIsInfiniteClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds number.isInfinite rule. Asserts that the input is an infinite number.

NumberIsMultipleOfClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds number.isMultipleOf rule. Asserts that the input is a multiple of the given number.

NumberIsNanClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds number.isNan rule. Asserts that the input is a not a number.

NumberIsNegativeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds number.isNegative rule. Asserts that the input is a negative number.

NumberIsOddClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds number.isOdd rule. Asserts that the input is an odd number.

NumberIsPositiveClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds number.isPositive rule. Asserts that the input is a positive number.

NumericConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds numeric rule. Asserts that the input is numeric.

Expression::normal() — Method in class Expression

Makes the expression normal (executes all checks). The is the default behavior.

Expression::not() — Method in class Expression

Adds NOT operator (tilde: ~). Negates the next rule/group.

SmartEnum::names() — Method in class SmartEnum

O

Result::offsetGet() — Method in class Result

ArrayAccess::offsetGet() interface implementation.

Result::offsetSet() — Method in class Result

ArrayAccess::offsetSet() interface implementation.

Result::offsetExists() — Method in class Result

ArrayAccess::offsetExists() interface implementation.

Result::offsetUnset() — Method in class Result

ArrayAccess::offsetUnset() interface implementation.

Validation::object() — Method in class Validation

Adds object rule. Asserts that the input is an object.

Validation::objectHasProperty() — Method in class Validation

Adds object.hasProperty rule. Asserts that the input has the given property.

Validation::objectHasMethod() — Method in class Validation

Adds object.hasMethod rule. Asserts that the input has the given method.

Validation::objectIsStringable() — Method in class Validation
method.
Validation::objectIsInstanceOf() — Method in class Validation

Adds object.isInstanceOf rule. Asserts that the input is an instance of the given class.

Validation::objectIsSubclassOf() — Method in class Validation

Adds object.isSubclassOf rule. Asserts that the input is a subclass of the given class.

Validation::obj() — Method in class Validation

Adds obj rule. An alias for the object rule.

Validation::optional() — Method in class Validation

Adds optional rule. An alias for the allowed rule.

ObjClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds obj rule. An alias for the object rule.

ObjectConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds object rule. Asserts that the input is an object.

ObjectHasMethodClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds object.hasMethod rule. Asserts that the input has the given method.

ObjectHasPropertyClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds object.hasProperty rule. Asserts that the input has the given property.

ObjectIsInstanceOfClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds object.isInstanceOf rule. Asserts that the input is an instance of the given class.

ObjectIsStringableClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds object.isStringable rule. Asserts that the input implements __toString() method.

ObjectIsSubclassOfClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds object.isSubclassOf rule. Asserts that the input is a subclass of the given class.

OptionalClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds optional rule. An alias for the allowed rule.

Expression::optimistic() — Method in class Expression

Makes the expression optimistic (stop checking after first success).

Expression::or() — Method in class Expression

Adds OR operator (pipe: |). Ors the next rule/group.

Expression::open() — Method in class Expression

Adds OPEN operator (opening parenthesis: (). Starts a new group.

P

Engine::parseRule() — Method in class Engine

Parses the rule statement by extracting rule name and rule arguments.

Engine::parseExpression() — Method in class Engine

Parses the validation expression by extracting the validations into an array of checks.

Definition::parameters() — Method in class Definition

Sets the parameters of the rule (returns object), or gets it if parameter is false or not specified.

$ Memoizer#poolsProperty in class Memoizer
Memoizer::pool() — Method in class Memoizer
Validation::punct() — Method in class Validation

Adds punct rule. Asserts that the input consists of punctuation characters only.

Validation::print() — Method in class Validation

Adds print rule. Asserts that the input consists of printable characters only.

Validation::password() — Method in class Validation
.
Validation::phone() — Method in class Validation
.
Validation::phpKeyword() — Method in class Validation

Adds php.keyword rule. Asserts that the input is a PHP language Keyword.

Validation::phpReserved() — Method in class Validation

Adds php.reserved rule. Asserts that the input is a PHP language reserved word.

Validation::phpReservedExtra() — Method in class Validation

Adds php.reserved.extra rule. Asserts that the input is a PHP language reserved word including soft reserved words.

Validation::pattern() — Method in class Validation

Adds pattern rule. An alias for the matches rule.

Validation::present() — Method in class Validation

Adds present rule. An alias for the required rule.

PasswordClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds password rule. Asserts that the input is a valid password (minimum 8 characters, consists of at least one small letter and one capital letter, at least one number, at least one special character, and optionally a space).

PatternClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds pattern rule. An alias for the matches rule.

PhoneClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds phone rule. Asserts that the input is a valid phone number (supports: North America, Europe and most Asian and Middle East countries).

PhpKeywordClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds php.keyword rule. Asserts that the input is a PHP language Keyword.

PhpReservedClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds php.reserved rule. Asserts that the input is a PHP language reserved word.

PhpReservedExtraClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds php.reserved.extra rule. Asserts that the input is a PHP language reserved word including soft reserved words.

PresentClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds present rule. An alias for the required rule.

PrintConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds print rule. Asserts that the input consists of printable characters only.

PunctClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds punct rule. Asserts that the input consists of punctuation characters only.

Expression::pessimistic() — Method in class Expression

Makes the expression pessimistic (stop checking after first failure).

R

ResultClass in namespace MAKS\Mighty

Result class.

Result::removeAttribute() — Method in class Result

Removes an attribute from the result object.

RuleClass in namespace MAKS\Mighty
Inspector::return() — Method in class Inspector

Returns the passed value.

Validation::resource() — Method in class Validation

Adds resource rule. Asserts that the input is a resource.

Validation::regexp() — Method in class Validation

Adds regexp rule. Asserts that the input matches a Perl-compatible regular expression.

Validation::required() — Method in class Validation
.
Validation::roman() — Method in class Validation

Adds roman rule. Asserts that the input is a valid roman number.

Validation::regex() — Method in class Validation

Adds regex rule. Asserts that the input is a valid regular expression.

Aliases:

Validation::real() — Method in class Validation

Adds real rule. An alias for the float rule.

Validation::range() — Method in class Validation

Adds range rule. An alias for the between rule.

RuleClass in namespace MAKS\Mighty\Validation\Constraint

Validates any data using a single validation rule.

RangeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds range rule. An alias for the between rule.

RealClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds real rule. An alias for the float rule.

RegexClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds regex rule. Asserts that the input is a valid regular expression.

RegexpClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds regexp rule. Asserts that the input matches a Perl-compatible regular expression.

RequiredClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds required rule. Asserts that the input is required (is not blank, i.e. not a empty string or null).

ResourceConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds resource rule. Asserts that the input is a resource.

RomanClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds roman rule. Asserts that the input is a valid roman number.

$ Validator#reflectionsProperty in class Validator

Validatable objects reflections cache.

$ Validator#resultsProperty in class Validator

Validatable object validation results.

Expression::rule() — Method in class Expression

Writes a rule to the current expression string.

RegexClass in namespace MAKS\Mighty\Validation\Pattern

Holder for a collection o f regular expressions.

$ Validator#rulesProperty in class Validator

Available validation rules.

$ Validator#resultsProperty in class Validator

Validations results against the currently loaded data.

Validator::reset() — Method in class Validator

Resets validator's internal state.

S

$ Rule#statementProperty in class Rule

Rule statement string.

Rule::setMessageTranslator() — Method in class Rule

Sets rule messages global translator.

Rule::setStatement() — Method in class Rule

Sets rule statement string.

Rule::setInput() — Method in class Rule

Sets rule input.

Definition::setDefinition() — Method in class Definition

Sets rule definition array.

Definition::setName() — Method in class Definition

Sets the name of the rule.

Definition::setArguments() — Method in class Definition

Gets the arguments of the rule.

Definition::setCallback() — Method in class Definition

Sets the callback of the rule.

Definition::setParameters() — Method in class Definition

Sets the parameters of the rule.

Definition::setComparison() — Method in class Definition

Sets the comparison of the rule.

Definition::setVariables() — Method in class Definition

Sets the variables of the rule.

Definition::setMessage() — Method in class Definition

Sets the message of the rule.

Definition::setDescription() — Method in class Definition

Sets the description of the rule.

Definition::setExample() — Method in class Definition

Sets the example of the rule.

Memoizer::set() — Method in class Memoizer
SerializerClass in namespace MAKS\Mighty\Support

Serializer class.

Serializer::serialize() — Method in class Serializer

Returns a string representation of the given variable.

Validation::string() — Method in class Validation

Adds string rule. Asserts that the input is a string.

Validation::scalar() — Method in class Validation

Adds scalar rule. Asserts that the input is a scalar.

Validation::space() — Method in class Validation

Adds space rule. Asserts that the input consists of whitespace characters only.

Validation::stringCharset() — Method in class Validation

. The check is done in a case-sensitive manner.

Validation::stringContains() — Method in class Validation
.
Validation::stringStartsWith() — Method in class Validation
.
Validation::stringEndsWith() — Method in class Validation
.
Validation::stringLength() — Method in class Validation

Adds string.length rule. Asserts that the input is a string that is exactly the given length.

Validation::stringWordsCount() — Method in class Validation

Adds string.wordsCount rule. Asserts that the input is a string containing exactly the given count of words.

Validation::serialized() — Method in class Validation

Adds serialized rule. Asserts that the input is a valid PHP serialized data.

Validation::slug() — Method in class Validation

Adds slug rule. Asserts that the input is a valid slug.

Validation::spaceless() — Method in class Validation

Adds spaceless rule. Asserts that the input is a string containing no whitespace characters.

Validation::ssn() — Method in class Validation
.
Validation::sin() — Method in class Validation
.
Validation::str() — Method in class Validation

Adds str rule. An alias for the string rule.

Validation::stream() — Method in class Validation

Adds stream rule. An alias for the resource rule.

Validation::same() — Method in class Validation

Adds same rule. An alias for the equals rule.

Validation::size() — Method in class Validation

Adds size rule. An alias for the count rule.

$ Constraint#strategyProperty in class Constraint

Constraint strategy.

Constraint::setValidator() — Method in class Constraint

Sets constraint validator instance.

Constraint::setValidation() — Method in class Constraint

Sets constraint validation expression.

Constraint::setMessages() — Method in class Constraint

Sets constraint rules messages overrides.

Constraint::setStrategy() — Method in class Constraint

Sets constraint strategy.

SameClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds same rule. An alias for the equals rule.

ScalarClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds scalar rule. Asserts that the input is a scalar.

SerializedClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds serialized rule. Asserts that the input is a valid PHP serialized data.

SinClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds sin rule. Asserts that the input is a valid SIN (CA Social Insurance Number).

SizeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds size rule. An alias for the count rule.

SlugClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds slug rule. Asserts that the input is a valid slug.

SpaceClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds space rule. Asserts that the input consists of whitespace characters only.

SpacelessClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds spaceless rule. Asserts that the input is a string containing no whitespace characters.

SsnClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds ssn rule. Asserts that the input is a valid SSN (Social Security Number).

StrClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds str rule. An alias for the string rule.

StreamClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds stream rule. An alias for the resource rule.

StringCharsetClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds string.charset rule. Asserts that the input is encoded in one of the given charsets (aliases included). The check is done in a case-sensitive manner.

StringConstraintClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds string rule. Asserts that the input is a string.

StringContainsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds string.contains rule. Asserts that the input contains the given substring. A second boolean argument can be specified to enable strict mode (case-sensitive).

StringEndsWithClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds string.endsWith rule. Asserts that the input ends with the given substring. A second boolean argument can be specified to enable strict mode (case-sensitive).

StringLengthClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds string.length rule. Asserts that the input is a string that is exactly the given length.

StringStartsWithClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds string.startsWith rule. Asserts that the input starts with the given substring. A second boolean argument can be specified to enable strict mode (case-sensitive).

StringWordsCountClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds string.wordsCount rule. Asserts that the input is a string containing exactly the given count of words.

ShapeClass in namespace MAKS\Mighty\Validation\Constraint

Validates the shape of an array or object (traversable or not).

SmartEnumClass in namespace MAKS\Mighty\Validation

Provides helpers to unit and backed enums to cast and retrieve names and values in a unified interface.

Validator::setData() — Method in class Validator

Sets the data to validate.

Validator::setValidations() — Method in class Validator

Sets the validation expression for each data key.

Validator::setMessages() — Method in class Validator

Sets rule message override for each validation rule of each data key.

Validator::setLabels() — Method in class Validator

Sets labels for each data key. These labels will be injected in validation messages.

T

Exception::throw() — Method in class Exception

Throws an exception using the class this method was called on.

Result::toArray() — Method in class Result

Returns the result object as an array including the attributes.

Result::toString() — Method in class Result

Returns the result object as a string (formatted error message or an empty string if there wasn't any errors).

$ Rule#translatorProperty in class Rule

Rule messages translator.

Utility::transform() — Method in class Utility

Transforms the case/content of a string by applying a one or more of the 26 available transformations.

ThrowableClass in namespace MAKS\Mighty

Mighty throwable interface.

Validation::type() — Method in class Validation

Adds type rule. Asserts that the input is one of the given types.

Validation::typeDebug() — Method in class Validation
.
Validation::timezone() — Method in class Validation
.
Validation::timestamp() — Method in class Validation

Adds timestamp rule. Asserts that the input looks like a human timestamp, 24 or 12 hours format with or without seconds.

Validation::timestamp12() — Method in class Validation

Adds timestamp.12 rule. Asserts that the input looks like a human timestamp, 12 hours format with or without seconds and optional AM/PM..

Validation::timestampHms() — Method in class Validation

Adds timestamp.hms rule. Asserts that the input looks like a human timestamp, 24 or 12 hours format with seconds.

Validation::timestampHm() — Method in class Validation

Adds timestamp.hm rule. Asserts that the input looks like a human timestamp, 24 or 12 hours format without seconds.

Validation::timestampMs() — Method in class Validation

Adds timestamp.ms rule. Asserts that the input looks like a human timestamp, containing minutes and seconds only.

Validation::text() — Method in class Validation

Adds text rule. Asserts that the input is a string containing letters and punctuation from any language.

TextClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds text rule. Asserts that the input is a string containing letters and punctuation from any language.

TimestampClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds timestamp rule. Asserts that the input looks like a human timestamp, 24 or 12 hours format with or without seconds.

Timestamp12Class in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds timestamp.12 rule. Asserts that the input looks like a human timestamp, 12 hours format with or without seconds and optional AM/PM..

This is an auto-generated class that was generated programmatically by: MAKS\Mighty\Maker

TimestampHmClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds timestamp.hm rule. Asserts that the input looks like a human timestamp, 24 or 12 hours format without seconds.

TimestampHmsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds timestamp.hms rule. Asserts that the input looks like a human timestamp, 24 or 12 hours format with seconds.

TimestampMsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds timestamp.ms rule. Asserts that the input looks like a human timestamp, containing minutes and seconds only.

TimezoneClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds timezone rule. Asserts that the input is a valid timezone identifier (default: case-insensitive; strict: case-sensitive).

TypeClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds type rule. Asserts that the input is one of the given types.

TypeDebugClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds type.debug rule. Asserts that the input is of the given type using get_debug_type().

$ Expression#tokensProperty in class Expression

Expression string buffer tokens.

SmartEnum::toScalar() — Method in class SmartEnum

U

UnknownValidationRuleExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when attempt is made to execute an unknown validation rule.

Serializer::unserialize() — Method in class Serializer

Returns the passed variable and applies the given cast to it if specified.

UtilityClass in namespace MAKS\Mighty\Support

Holder for various miscellaneous utility function.

Validation::upper() — Method in class Validation

Adds upper rule. Asserts that the input consists of uppercase characters only.

Validation::url() — Method in class Validation

Adds url rule. Asserts that the input is a URL.

Validation::urlWithPath() — Method in class Validation

Adds url.withPath rule. Asserts that the input is a URL that contains a path.

Validation::urlWithQuery() — Method in class Validation

Adds url.withQuery rule. Asserts that the input is a URL that contains a query.

Validation::username() — Method in class Validation
.
Validation::uuid() — Method in class Validation

can be specifed to narrow the pattern.

UpperClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds upper rule. Asserts that the input consists of uppercase characters only.

UrlClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds url rule. Asserts that the input is a URL.

UrlWithPathClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds url.withPath rule. Asserts that the input is a URL that contains a path.

UrlWithQueryClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds url.withQuery rule. Asserts that the input is a URL that contains a query.

UsernameClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds username rule. Asserts that the input is a valid username (between 4-32 characters, consists of letters in any case, optionally numbers, optionally one of the following characters "-_." (not consecutive), and must always start with a letter and end with a letter or number).

UuidClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds uuid rule. Asserts that the input is a valid UUID. The version (v1/v2/v3/v4/v5) can be specifed to narrow the pattern.

V

ValidationFailedExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when validation is not successful or failed.

ValidationLogicExceptionClass in namespace MAKS\Mighty\Exception

Exception thrown when validation is impossible or validation expression is illogical.

ValidatorThrowableClass in namespace MAKS\Mighty\Exception

Validator throwable interface.

Definition::variables() — Method in class Definition

Sets the variables of the rule (returns object), or gets it if parameter is false or not specified.

ValidationClass in namespace MAKS\Mighty\Rule

Validation rule names and aliases constants.

ValidationClass in namespace MAKS\Mighty

Validator aware validation expression builder.

$ Validation#validatorProperty in class Validation

Associated Validator instance.

Validation::version() — Method in class Validation

Adds version rule. Asserts that the input is a valid semantic version number.

Validation::vin() — Method in class Validation
.
$ Constraint#validatorProperty in class Constraint

Constraint validator instance.

$ Constraint#validationProperty in class Constraint

Constraint validation expression.

Constraint::validate() — Method in class Constraint

Validates the given value and returns the validation result.

Callback::validate() — Method in class Callback

Validates the given value and returns the validation result.

Compound::validate() — Method in class Compound

Validates the given value and returns the validation result.

Rule::validate() — Method in class Rule

Validates the given value and returns the validation result.

VersionClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds version rule. Asserts that the input is a valid semantic version number.

VinClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds vin rule. Asserts that the input is a valid VIN (Vehicle Identification Number).

Shape::validate() — Method in class Shape

Validates the given value and returns the validation result.

ValidClass in namespace MAKS\Mighty\Validation\Constraint

Validates the validity of a validatable object.

Valid::validate() — Method in class Valid

Validates the given value and returns the validation result.

ValidatableObjectInterfaceClass in namespace MAKS\Mighty\Validation\Constraint

The interface for all validatable objects. See ValidatableObjectTrait for implementation.

ValidatableObjectInterface::validate() — Method in class ValidatableObjectInterface

Validates the object and returns the validation result.

ValidatableObjectTraitClass in namespace MAKS\Mighty\Validation\Constraint

The trait for implementing ValidatableObjectInterface.

ValidatableObjectTrait::validate() — Method in class ValidatableObjectTrait
ValidatesAnyClass in namespace MAKS\Mighty\Validation\Constraint

Constraint interface.

ValidatesAny::validate() — Method in class ValidatesAny

Validates the given value and returns the validation result.

ValidatesManyClass in namespace MAKS\Mighty\Validation\Constraint

Interface for constraints that validate multiple items.

ValidatesMany::validate() — Method in class ValidatesMany

Validates the given value and returns the validation result.

ValidatesOneClass in namespace MAKS\Mighty\Validation\Constraint

Interface for constraints that validate a single item.

ValidatesOne::validate() — Method in class ValidatesOne

Validates the given value and returns the validation result.

ValidatorClass in namespace MAKS\Mighty\Validation\Constraint

Validatable object constraints validator.

Validator::validate() — Method in class Validator

Validates object constraints and returns validation results.

Validator::validateClass() — Method in class Validator

Validates class attributes of the passed validatable object reflection.

Validator::validateConstants() — Method in class Validator

Validates constants attributes of the passed validatable object reflection.

Validator::validateProperties() — Method in class Validator

Validates properties attributes of the passed validatable object reflection.

Validator::validateMethods() — Method in class Validator

Validates methods attributes of the passed validatable object reflection.

Expression::variable() — Method in class Expression

Returns a the passed key as a valid back-reference injectable.

SmartEnum::values() — Method in class SmartEnum
ValidatorClass in namespace MAKS\Mighty
$ Validator#validationsProperty in class Validator

Currently loaded validations.

Validator::validation() — Method in class Validator

Returns an instance of the validation expression builder.

Validator::validate() — Method in class Validator

Validates current validator's data against current validator's validations and return the results.

Validator::validateAll() — Method in class Validator

Validates the passed data against the passed validations.

Validator::validateOne() — Method in class Validator

Validates a single value against the passed validation.

Validator::validateData() — Method in class Validator

Validates the passed data against the passed validation.

W

Validation::words() — Method in class Validation

Adds words rule. Asserts that the input is a string containing only words and spaces without any other character.

WordsClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds words rule. Asserts that the input is a string containing only words and spaces without any other character.

Expression::write() — Method in class Expression

Writes the passed string to the current expression string buffer.

X

Validation::xdigit() — Method in class Validation

Adds xdigit rule. Asserts that the input represent hexadecimal digits.

Validation::xml() — Method in class Validation

Adds xml rule. Asserts that the input is a valid XML.

XdigitClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds xdigit rule. Asserts that the input represent hexadecimal digits.

XmlClass in namespace MAKS\Mighty\Validation\Constraint\Rule

Adds xml rule. Asserts that the input is a valid XML.

Expression::xor() — Method in class Expression

Adds XOR operator (caret: ^). Xors the next rule/group.

_

Exception::__construct() — Method in class Exception

Exception constructor.

Exception::__toString() — Method in class Exception

Returns a string representation of the exception object.

Result::__construct() — Method in class Result

Result constructor.

Result::__toString() — Method in class Result

Returns error messages.

Rule::__construct() — Method in class Rule

Rule constructor.

Rule::__invoke() — Method in class Rule

Executes the rule when the object is invoked as a function.

Rule::__toString() — Method in class Rule

Returns the current rule statement.

Validation::__construct() — Method in class Validation
Memoizer::__construct() — Method in class Memoizer
Validation::__construct() — Method in class Validation

Validation constructor.

Validation::__callStatic() — Method in class Validation

Provides rules and aliases as static class methods.

Constraint::__construct() — Method in class Constraint

Constraint constructor.

Callback::__construct() — Method in class Callback

Callback constructor.

Compound::__construct() — Method in class Compound

Compound constructor.

Rule::__construct() — Method in class Rule

Rule constructor.

Accepted::__construct() — Method in class Accepted

Rule constructor.

Allowed::__construct() — Method in class Allowed

Rule constructor.

Alnum::__construct() — Method in class Alnum

Rule constructor.

Alpha::__construct() — Method in class Alpha

Rule constructor.

Amount::__construct() — Method in class Amount

Rule constructor.

AmountDollar::__construct() — Method in class AmountDollar

Rule constructor.

AmountEuro::__construct() — Method in class AmountEuro

Rule constructor.

Arr::__construct() — Method in class Arr

Rule constructor.

ArrayConstraint::__construct() — Method in class ArrayConstraint

Rule constructor.

ArrayHasDistinct::__construct() — Method in class ArrayHasDistinct

Rule constructor.

ArrayHasKey::__construct() — Method in class ArrayHasKey

Rule constructor.

ArrayHasValue::__construct() — Method in class ArrayHasValue

Rule constructor.

ArrayIsAssociative::__construct() — Method in class ArrayIsAssociative

Rule constructor.

ArrayIsSequential::__construct() — Method in class ArrayIsSequential

Rule constructor.

ArrayIsUnique::__construct() — Method in class ArrayIsUnique

Rule constructor.

ArraySubset::__construct() — Method in class ArraySubset

Rule constructor.

Ascii::__construct() — Method in class Ascii

Rule constructor.

Assert::__construct() — Method in class Assert

Rule constructor.

AssertEquals::__construct() — Method in class AssertEquals

Rule constructor.

AssertGreaterThan::__construct() — Method in class AssertGreaterThan

Rule constructor.

AssertGreaterThanOrEquals::__construct() — Method in class AssertGreaterThanOrEquals

Rule constructor.

AssertLessThan::__construct() — Method in class AssertLessThan

Rule constructor.

AssertLessThanOrEquals::__construct() — Method in class AssertLessThanOrEquals

Rule constructor.

AssertNotEquals::__construct() — Method in class AssertNotEquals

Rule constructor.

Base64::__construct() — Method in class Base64

Rule constructor.

Between::__construct() — Method in class Between

Rule constructor.

Bic::__construct() — Method in class Bic

Rule constructor.

Bit::__construct() — Method in class Bit

Rule constructor.

BitIsOff::__construct() — Method in class BitIsOff

Rule constructor.

BitIsOn::__construct() — Method in class BitIsOn

Rule constructor.

Blank::__construct() — Method in class Blank

Rule constructor.

BoolConstraint::__construct() — Method in class BoolConstraint

Rule constructor.

Boolean::__construct() — Method in class Boolean

Rule constructor.

BooleanLike::__construct() — Method in class BooleanLike

Rule constructor.

Cakeday::__construct() — Method in class Cakeday

Rule constructor.

CalenderDay::__construct() — Method in class CalenderDay

Rule constructor.

CalenderMonth::__construct() — Method in class CalenderMonth

Rule constructor.

CallableConstraint::__construct() — Method in class CallableConstraint

Rule constructor.

Choice::__construct() — Method in class Choice

Rule constructor.

Cntrl::__construct() — Method in class Cntrl

Rule constructor.

Color::__construct() — Method in class Color

Rule constructor.

ColorHex::__construct() — Method in class ColorHex

Rule constructor.

ColorHexAlpha::__construct() — Method in class ColorHexAlpha

Rule constructor.

ColorHexLong::__construct() — Method in class ColorHexLong

Rule constructor.

ColorHexShort::__construct() — Method in class ColorHexShort

Rule constructor.

ColorHsl::__construct() — Method in class ColorHsl

Rule constructor.

ColorHslNew::__construct() — Method in class ColorHslNew

Rule constructor.

ColorHsla::__construct() — Method in class ColorHsla

Rule constructor.

ColorKeyword::__construct() — Method in class ColorKeyword

Rule constructor.

ColorRgb::__construct() — Method in class ColorRgb

Rule constructor.

ColorRgbNew::__construct() — Method in class ColorRgbNew

Rule constructor.

ColorRgba::__construct() — Method in class ColorRgba

Rule constructor.

Count::__construct() — Method in class Count

Rule constructor.

Countable::__construct() — Method in class Countable

Rule constructor.

Country::__construct() — Method in class Country

Rule constructor.

Creditcard::__construct() — Method in class Creditcard

Rule constructor.

CreditcardAmericanExpress::__construct() — Method in class CreditcardAmericanExpress

Rule constructor.

CreditcardChinaUnionPay::__construct() — Method in class CreditcardChinaUnionPay

Rule constructor.

CreditcardDinersClub::__construct() — Method in class CreditcardDinersClub

Rule constructor.

CreditcardDiscover::__construct() — Method in class CreditcardDiscover

Rule constructor.

CreditcardInstaPayment::__construct() — Method in class CreditcardInstaPayment

Rule constructor.

CreditcardJcb::__construct() — Method in class CreditcardJcb

Rule constructor.

CreditcardLaser::__construct() — Method in class CreditcardLaser

Rule constructor.

CreditcardMaestro::__construct() — Method in class CreditcardMaestro

Rule constructor.

CreditcardMastercard::__construct() — Method in class CreditcardMastercard

Rule constructor.

CreditcardMir::__construct() — Method in class CreditcardMir

Rule constructor.

CreditcardUatp::__construct() — Method in class CreditcardUatp

Rule constructor.

CreditcardVisa::__construct() — Method in class CreditcardVisa

Rule constructor.

Currency::__construct() — Method in class Currency

Rule constructor.

CurrencyName::__construct() — Method in class CurrencyName

Rule constructor.

Cvv::__construct() — Method in class Cvv

Rule constructor.

Date::__construct() — Method in class Date

Rule constructor.

DateAfter::__construct() — Method in class DateAfter

Rule constructor.

DateAfterOrEquals::__construct() — Method in class DateAfterOrEquals

Rule constructor.

DateBefore::__construct() — Method in class DateBefore

Rule constructor.

DateBeforeOrEquals::__construct() — Method in class DateBeforeOrEquals

Rule constructor.

DateEquals::__construct() — Method in class DateEquals

Rule constructor.

DateFormat::__construct() — Method in class DateFormat

Rule constructor.

Datestamp::__construct() — Method in class Datestamp

Rule constructor.

DatestampDmy::__construct() — Method in class DatestampDmy

Rule constructor.

DatestampMdy::__construct() — Method in class DatestampMdy

Rule constructor.

DatestampYmd::__construct() — Method in class DatestampYmd

Rule constructor.

Datetime::__construct() — Method in class Datetime

Rule constructor.

DatetimeBirthday::__construct() — Method in class DatetimeBirthday

Rule constructor.

DatetimeEq::__construct() — Method in class DatetimeEq

Rule constructor.

DatetimeFormat::__construct() — Method in class DatetimeFormat

Rule constructor.

DatetimeFormatGlobal::__construct() — Method in class DatetimeFormatGlobal

Rule constructor.

DatetimeFormatLocal::__construct() — Method in class DatetimeFormatLocal

Rule constructor.

DatetimeGt::__construct() — Method in class DatetimeGt

Rule constructor.

DatetimeGte::__construct() — Method in class DatetimeGte

Rule constructor.

DatetimeLt::__construct() — Method in class DatetimeLt

Rule constructor.

DatetimeLte::__construct() — Method in class DatetimeLte

Rule constructor.

Declined::__construct() — Method in class Declined

Rule constructor.

Digit::__construct() — Method in class Digit

Rule constructor.

Domain::__construct() — Method in class Domain

Rule constructor.

DomainIsActive::__construct() — Method in class DomainIsActive

Rule constructor.

Double::__construct() — Method in class Double

Rule constructor.

Email::__construct() — Method in class Email

Rule constructor.

EmailWithUnicode::__construct() — Method in class EmailWithUnicode

Rule constructor.

Emoji::__construct() — Method in class Emoji

Rule constructor.

EmptyConstraint::__construct() — Method in class EmptyConstraint

Rule constructor.

Equals::__construct() — Method in class Equals

Rule constructor.

Esn::__construct() — Method in class Esn

Rule constructor.

File::__construct() — Method in class File

Rule constructor.

FileBasename::__construct() — Method in class FileBasename

Rule constructor.

FileDirname::__construct() — Method in class FileDirname

Rule constructor.

FileExtension::__construct() — Method in class FileExtension

Rule constructor.

FileFilename::__construct() — Method in class FileFilename

Rule constructor.

FileIsDirectory::__construct() — Method in class FileIsDirectory

Rule constructor.

FileIsExecutable::__construct() — Method in class FileIsExecutable

Rule constructor.

FileIsFile::__construct() — Method in class FileIsFile

Rule constructor.

FileIsLink::__construct() — Method in class FileIsLink

Rule constructor.

FileIsReadable::__construct() — Method in class FileIsReadable

Rule constructor.

FileIsUploaded::__construct() — Method in class FileIsUploaded

Rule constructor.

FileIsWritable::__construct() — Method in class FileIsWritable

Rule constructor.

FileMime::__construct() — Method in class FileMime

Rule constructor.

FileSize::__construct() — Method in class FileSize

Rule constructor.

FileSizeGte::__construct() — Method in class FileSizeGte

Rule constructor.

FileSizeLte::__construct() — Method in class FileSizeLte

Rule constructor.

Filled::__construct() — Method in class Filled

Rule constructor.

FloatConstraint::__construct() — Method in class FloatConstraint

Rule constructor.

FloatLike::__construct() — Method in class FloatLike

Rule constructor.

FloatLikeAllowThousands::__construct() — Method in class FloatLikeAllowThousands

Rule constructor.

Forbidden::__construct() — Method in class Forbidden

Rule constructor.

Geolocation::__construct() — Method in class Geolocation

Rule constructor.

Graph::__construct() — Method in class Graph

Rule constructor.

Iban::__construct() — Method in class Iban

Rule constructor.

IfConstraint::__construct() — Method in class IfConstraint

Rule constructor.

IfEq::__construct() — Method in class IfEq

Rule constructor.

IfGt::__construct() — Method in class IfGt

Rule constructor.

IfGte::__construct() — Method in class IfGte

Rule constructor.

IfId::__construct() — Method in class IfId

Rule constructor.

IfLt::__construct() — Method in class IfLt

Rule constructor.

IfLte::__construct() — Method in class IfLte

Rule constructor.

IfNeq::__construct() — Method in class IfNeq

Rule constructor.

IfNid::__construct() — Method in class IfNid

Rule constructor.

Image::__construct() — Method in class Image

Rule constructor.

ImageDimensions::__construct() — Method in class ImageDimensions

Rule constructor.

ImageHeight::__construct() — Method in class ImageHeight

Rule constructor.

ImageHeightGte::__construct() — Method in class ImageHeightGte

Rule constructor.

ImageHeightLte::__construct() — Method in class ImageHeightLte

Rule constructor.

ImageRatio::__construct() — Method in class ImageRatio

Rule constructor.

ImageWidth::__construct() — Method in class ImageWidth

Rule constructor.

ImageWidthGte::__construct() — Method in class ImageWidthGte

Rule constructor.

ImageWidthLte::__construct() — Method in class ImageWidthLte

Rule constructor.

Imei::__construct() — Method in class Imei

Rule constructor.

ImeiSv::__construct() — Method in class ImeiSv

Rule constructor.

In::__construct() — Method in class In

Rule constructor.

IntConstraint::__construct() — Method in class IntConstraint

Rule constructor.

Integer::__construct() — Method in class Integer

Rule constructor.

IntegerLike::__construct() — Method in class IntegerLike

Rule constructor.

IntegerLikeAllowHex::__construct() — Method in class IntegerLikeAllowHex

Rule constructor.

IntegerLikeAllowOctal::__construct() — Method in class IntegerLikeAllowOctal

Rule constructor.

Ip::__construct() — Method in class Ip

Rule constructor.

IpNotPrivate::__construct() — Method in class IpNotPrivate

Rule constructor.

IpNotReserved::__construct() — Method in class IpNotReserved

Rule constructor.

IpV4::__construct() — Method in class IpV4

Rule constructor.

IpV6::__construct() — Method in class IpV6

Rule constructor.

Is::__construct() — Method in class Is

Rule constructor.

Isbn::__construct() — Method in class Isbn

Rule constructor.

Isin::__construct() — Method in class Isin

Rule constructor.

Issn::__construct() — Method in class Issn

Rule constructor.

IterableConstraint::__construct() — Method in class IterableConstraint

Rule constructor.

Json::__construct() — Method in class Json

Rule constructor.

Language::__construct() — Method in class Language

Rule constructor.

Length::__construct() — Method in class Length

Rule constructor.

Locale::__construct() — Method in class Locale

Rule constructor.

Long::__construct() — Method in class Long

Rule constructor.

Lower::__construct() — Method in class Lower

Rule constructor.

Luhn::__construct() — Method in class Luhn

Rule constructor.

Mac::__construct() — Method in class Mac

Rule constructor.

Matches::__construct() — Method in class Matches

Rule constructor.

Max::__construct() — Method in class Max

Rule constructor.

Meid::__construct() — Method in class Meid

Rule constructor.

Meta::__construct() — Method in class Meta

Rule constructor.

Min::__construct() — Method in class Min

Rule constructor.

Minmax::__construct() — Method in class Minmax

Rule constructor.

Nino::__construct() — Method in class Nino

Rule constructor.

NullConstraint::__construct() — Method in class NullConstraint

Rule constructor.

NumberIsEven::__construct() — Method in class NumberIsEven

Rule constructor.

NumberIsFinite::__construct() — Method in class NumberIsFinite

Rule constructor.

NumberIsInfinite::__construct() — Method in class NumberIsInfinite

Rule constructor.

NumberIsMultipleOf::__construct() — Method in class NumberIsMultipleOf

Rule constructor.

NumberIsNan::__construct() — Method in class NumberIsNan

Rule constructor.

NumberIsNegative::__construct() — Method in class NumberIsNegative

Rule constructor.

NumberIsOdd::__construct() — Method in class NumberIsOdd

Rule constructor.

NumberIsPositive::__construct() — Method in class NumberIsPositive

Rule constructor.

NumericConstraint::__construct() — Method in class NumericConstraint

Rule constructor.

Obj::__construct() — Method in class Obj

Rule constructor.

ObjectConstraint::__construct() — Method in class ObjectConstraint

Rule constructor.

ObjectHasMethod::__construct() — Method in class ObjectHasMethod

Rule constructor.

ObjectHasProperty::__construct() — Method in class ObjectHasProperty

Rule constructor.

ObjectIsInstanceOf::__construct() — Method in class ObjectIsInstanceOf

Rule constructor.

ObjectIsStringable::__construct() — Method in class ObjectIsStringable

Rule constructor.

ObjectIsSubclassOf::__construct() — Method in class ObjectIsSubclassOf

Rule constructor.

Optional::__construct() — Method in class Optional

Rule constructor.

Password::__construct() — Method in class Password

Rule constructor.

Pattern::__construct() — Method in class Pattern

Rule constructor.

Phone::__construct() — Method in class Phone

Rule constructor.

PhpKeyword::__construct() — Method in class PhpKeyword

Rule constructor.

PhpReserved::__construct() — Method in class PhpReserved

Rule constructor.

PhpReservedExtra::__construct() — Method in class PhpReservedExtra

Rule constructor.

Present::__construct() — Method in class Present

Rule constructor.

PrintConstraint::__construct() — Method in class PrintConstraint

Rule constructor.

Punct::__construct() — Method in class Punct

Rule constructor.

Range::__construct() — Method in class Range

Rule constructor.

Real::__construct() — Method in class Real

Rule constructor.

Regex::__construct() — Method in class Regex

Rule constructor.

Regexp::__construct() — Method in class Regexp

Rule constructor.

Required::__construct() — Method in class Required

Rule constructor.

ResourceConstraint::__construct() — Method in class ResourceConstraint

Rule constructor.

Roman::__construct() — Method in class Roman

Rule constructor.

Same::__construct() — Method in class Same

Rule constructor.

Scalar::__construct() — Method in class Scalar

Rule constructor.

Serialized::__construct() — Method in class Serialized

Rule constructor.

Sin::__construct() — Method in class Sin

Rule constructor.

Size::__construct() — Method in class Size

Rule constructor.

Slug::__construct() — Method in class Slug

Rule constructor.

Space::__construct() — Method in class Space

Rule constructor.

Spaceless::__construct() — Method in class Spaceless

Rule constructor.

Ssn::__construct() — Method in class Ssn

Rule constructor.

Str::__construct() — Method in class Str

Rule constructor.

Stream::__construct() — Method in class Stream

Rule constructor.

StringCharset::__construct() — Method in class StringCharset

Rule constructor.

StringConstraint::__construct() — Method in class StringConstraint

Rule constructor.

StringContains::__construct() — Method in class StringContains

Rule constructor.

StringEndsWith::__construct() — Method in class StringEndsWith

Rule constructor.

StringLength::__construct() — Method in class StringLength

Rule constructor.

StringStartsWith::__construct() — Method in class StringStartsWith

Rule constructor.

StringWordsCount::__construct() — Method in class StringWordsCount

Rule constructor.

Text::__construct() — Method in class Text

Rule constructor.

Timestamp::__construct() — Method in class Timestamp

Rule constructor.

Timestamp12::__construct() — Method in class Timestamp12

Rule constructor.

TimestampHm::__construct() — Method in class TimestampHm

Rule constructor.

TimestampHms::__construct() — Method in class TimestampHms

Rule constructor.

TimestampMs::__construct() — Method in class TimestampMs

Rule constructor.

Timezone::__construct() — Method in class Timezone

Rule constructor.

Type::__construct() — Method in class Type

Rule constructor.

TypeDebug::__construct() — Method in class TypeDebug

Rule constructor.

Upper::__construct() — Method in class Upper

Rule constructor.

Url::__construct() — Method in class Url

Rule constructor.

UrlWithPath::__construct() — Method in class UrlWithPath

Rule constructor.

UrlWithQuery::__construct() — Method in class UrlWithQuery

Rule constructor.

Username::__construct() — Method in class Username

Rule constructor.

Uuid::__construct() — Method in class Uuid

Rule constructor.

Version::__construct() — Method in class Version

Rule constructor.

Vin::__construct() — Method in class Vin

Rule constructor.

Words::__construct() — Method in class Words

Rule constructor.

Xdigit::__construct() — Method in class Xdigit

Rule constructor.

Xml::__construct() — Method in class Xml

Rule constructor.

Shape::__construct() — Method in class Shape

Shape constructor.

Valid::__construct() — Method in class Valid

Valid constructor.

Validator::__construct() — Method in class Validator

Validator constructor.

Expression::__toString() — Method in class Expression

Returns the current expression string.

Expression::__call() — Method in class Expression

Provides rules and aliases as class methods.

Regex::__construct() — Method in class Regex
Validator::__construct() — Method in class Validator

Validator constructor.

Validator::__clone() — Method in class Validator

Resets validator's internal state when cloned.