Index
A
- $ Result#attributes — Property 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
falseor 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
arrayrule. Asserts that the input is an array.- Validation::alpha() — Method in class Validation
Adds
alpharule. Asserts that the input consists of alphabetic characters only.- Validation::alnum() — Method in class Validation
Adds
alnumrule. 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.hasKeyrule. Asserts that the input array has the given key.- Validation::arrayHasValue() — Method in class Validation
Adds
array.hasValuerule. Asserts that the input array contains the given value. Works with scalar types.- Validation::arrayHasDistinct() — Method in class Validation
Adds
array.hasDistinctrule. Asserts that the input is a multidimensional array that contains distinct values of the given key.- Validation::arrayIsAssociative() — Method in class Validation
Adds
array.isAssociativerule. Asserts that the input is an associative array.- Validation::arrayIsSequential() — Method in class Validation
Adds
array.isSequentialrule. Asserts that the input is a sequential array.- Validation::arrayIsUnique() — Method in class Validation
Adds
array.isUniquerule. Asserts that the input array contains unique values. Works only with one-dimensional arrays.- Validation::arraySubset() — Method in class Validation
Adds
array.subsetrule. 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.dollarrule. 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.eurorule. 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
arrrule. An alias for thearrayrule.- Validation::assert() — Method in class Validation
Adds
assertrule. An alias for theifrule.- Validation::assertEquals() — Method in class Validation
Adds
assert.equalsrule. An alias for theif.eqrule.- Validation::assertNotEquals() — Method in class Validation
Adds
assert.notEqualsrule. An alias for theif.neqrule.- Validation::assertGreaterThan() — Method in class Validation
Adds
assert.greaterThanrule. An alias for theif.gtrule.- Validation::assertGreaterThanOrEquals() — Method in class Validation
Adds
assert.greaterThanOrEqualsrule. An alias for theif.gterule.- Validation::assertLessThan() — Method in class Validation
Adds
assert.lessThanrule. An alias for theif.ltrule.- Validation::assertLessThanOrEquals() — Method in class Validation
Adds
assert.lessThanOrEqualsrule. An alias for theif.lterule.- Accepted — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
acceptedrule. 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.- Allowed — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
allowedrule. Asserts that the input is allowed (can be empty or have any value, null and empty string are considered valid values).- Alnum — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
alnumrule. Asserts that the input consists of alphanumeric characters only.- Alpha — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
alpharule. Asserts that the input consists of alphabetic characters only.- Amount — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
amountrule. 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).- AmountDollar — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
amount.dollarrule. Asserts that the input is a validly formatted amount of USD, where decimal point and thousands separator are optional.- AmountEuro — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
amount.eurorule. Asserts that the input is a validly formatted amount of EUR, where decimal point and thousands separator are optional.- Arr — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
arrrule. An alias for thearrayrule.- ArrayConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
arrayrule. Asserts that the input is an array.- ArrayHasDistinct — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
array.hasDistinctrule. Asserts that the input is a multidimensional array that contains distinct values of the given key.- ArrayHasKey — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
array.hasKeyrule. Asserts that the input array has the given key.- ArrayHasValue — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
array.hasValuerule. Asserts that the input array contains the given value. Works with scalar types.- ArrayIsAssociative — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
array.isAssociativerule. Asserts that the input is an associative array.- ArrayIsSequential — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
array.isSequentialrule. Asserts that the input is a sequential array.- ArrayIsUnique — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
array.isUniquerule. Asserts that the input array contains unique values. Works only with one-dimensional arrays.- ArraySubset — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
array.subsetrule. 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.- Ascii — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
asciirule. Asserts that the input is a string containing only ASCII characters (ASCII compliant string).- Assert — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
assertrule. An alias for theifrule.- AssertEquals — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
assert.equalsrule. An alias for theif.eqrule.- AssertGreaterThan — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
assert.greaterThanrule. An alias for theif.gtrule.- AssertGreaterThanOrEquals — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
assert.greaterThanOrEqualsrule. An alias for theif.gterule.- AssertLessThan — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
assert.lessThanrule. An alias for theif.ltrule.- AssertLessThanOrEquals — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
assert.lessThanOrEqualsrule. An alias for theif.lterule.- AssertNotEquals — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
assert.notEqualsrule. An alias for theif.neqrule.- Expression::and() — Method in class Expression
Adds AND operator (ampersand:
&) (default). Ands the next rule/group.- SmartEnum::array() — Method in class SmartEnum
- $ Validator#aliases — Property 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
booleanrule. 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
base64rule. Asserts that the input is a valid Base64 encoded string.- Validation::bic() — Method in class Validation
- .
- Validation::bool() — Method in class Validation
Adds
boolrule. An alias for thebooleanrule.- Validation::blank() — Method in class Validation
Adds
blankrule. An alias for theemptyrule.- Base64 — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
base64rule. Asserts that the input is a valid Base64 encoded string.- Between — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
betweenrule. 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).- Bic — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
bicrule. Asserts that the input is a valid BIC (Bank Identifier Code).- Bit — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
bitrule. Asserts that the input is bit (equals: 1 or "1", true; 0 or "0", false).- BitIsOff — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
bit.isOffrule. Asserts that the input is a turned off bit (equals: false, 0 or "0").- BitIsOn — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
bit.isOnrule. Asserts that the input is a turned on bit (equals: true, 1 or "1").- Blank — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
blankrule. An alias for theemptyrule.- BoolConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
boolrule. An alias for thebooleanrule.- Boolean — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
booleanrule. Asserts that the input is a boolean.- BooleanLike — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
booleanLikerule. 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#buffer — Property 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
falseor not specified.- Definition::comparison() — Method in class Definition
Sets the comparison of the rule (returns object), or gets it if parameter is
falseor 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
callablerule. Asserts that the input is a callable.- Validation::countable() — Method in class Validation
Adds
countablerule. Asserts that the input is a countable.- Validation::cntrl() — Method in class Validation
Adds
cntrlrule. 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.hexrule. Asserts that the input is a valid CSS HEX color.- Validation::colorHexShort() — Method in class Validation
Adds
color.hexShortrule. Asserts that the input is a valid CSS 3-Char-HEX color.- Validation::colorHexLong() — Method in class Validation
Adds
color.hexLongrule. 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.rgbrule. Asserts that the input is a valid CSS RGB color.- Validation::colorRgba() — Method in class Validation
Adds
color.rgbarule. Asserts that the input is a valid CSS RGBA color.- Validation::colorRgbNew() — Method in class Validation
Adds
color.rgb.newrule. Asserts that the input is a valid CSS4 RGB color.- Validation::colorHsl() — Method in class Validation
Adds
color.hslrule. Asserts that the input is a valid CSS HSL color.- Validation::colorHsla() — Method in class Validation
Adds
color.hslarule. Asserts that the input is a valid CSS HSLA color.- Validation::colorHslNew() — Method in class Validation
Adds
color.hsl.newrule. Asserts that the input is a valid CSS4 HSL color.- Validation::colorKeyword() — Method in class Validation
Adds
color.keywordrule. 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
creditcardrule. 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.visarule. 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.mastercardrule. 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.discoverrule. 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.americanExpressrule. 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.dinersClubrule. 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.jcbrule. 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.maestrorule. 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.chinaUnionPayrule. 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.instaPaymentrule. 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.laserrule. 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.uatprule. 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.mirrule. 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
choicerule. An alias for theinrule.- Validation::cakeday() — Method in class Validation
Adds
cakedayrule. An alias for thedatetime.birthdayrule.- Constraint — Class 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.
- Callback — Class in namespace MAKS\Mighty\Validation\Constraint
Validates any data using a callback function.
- Compound — Class 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
- Cakeday — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
cakedayrule. An alias for thedatetime.birthdayrule.- CalenderDay — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
calender.dayrule. Asserts that the input looks like a calendar dayin shot or long format ("Mon" or "Monday").- CalenderMonth — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
calender.monthrule. Asserts that the input looks like a calendar month in shot or long format ("Jan" or "January").- CallableConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
callablerule. Asserts that the input is a callable.- Choice — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
choicerule. An alias for theinrule.- Cntrl — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
cntrlrule. Asserts that the input consists of control characters only.- Color — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
colorrule. Asserts that the input is a valid CSS color (Color Word, HEX, HEX-Alpha, RGB, RGBA, HSL, HSLA).- ColorHex — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.hexrule. Asserts that the input is a valid CSS HEX color.- ColorHexAlpha — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.hexAlpharule. Asserts that the input is a valid CSS HEX-Alpha (4 or 8 Chars) color.- ColorHexLong — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.hexLongrule. Asserts that the input is a valid CSS 6-Char-HEX color.- ColorHexShort — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.hexShortrule. Asserts that the input is a valid CSS 3-Char-HEX color.- ColorHsl — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.hslrule. Asserts that the input is a valid CSS HSL color.- ColorHslNew — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.hsl.newrule. Asserts that the input is a valid CSS4 HSL color.- ColorHsla — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.hslarule. Asserts that the input is a valid CSS HSLA color.- ColorKeyword — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.keywordrule. Asserts that the input is a valid CSS YYY color.- ColorRgb — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.rgbrule. Asserts that the input is a valid CSS RGB color.- ColorRgbNew — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.rgb.newrule. Asserts that the input is a valid CSS4 RGB color.- ColorRgba — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
color.rgbarule. Asserts that the input is a valid CSS RGBA color.- Count — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
countrule. 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).- Countable — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
countablerule. Asserts that the input is a countable.- Country — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
countryrule. Asserts that the input is a valid country code (default: "ISO 3166-1 alpha-2"; long: "ISO 3166-1 alpha-3").- Creditcard — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcardrule. Asserts that the input is a valid credit card number, balanced spaces and/or dashes are allowed.- CreditcardAmericanExpress — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.americanExpressrule. Asserts that the input is a valid American Express credit card number, balanced spaces and/or dashes are allowed.- CreditcardChinaUnionPay — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.chinaUnionPayrule. Asserts that the input is a valid China UnionPay credit card number, balanced spaces and/or dashes are allowed.- CreditcardDinersClub — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.dinersClubrule. Asserts that the input is a valid Diners Club credit card number, balanced spaces and/or dashes are allowed.- CreditcardDiscover — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.discoverrule. Asserts that the input is a valid Discover credit card number, balanced spaces and/or dashes are allowed.- CreditcardInstaPayment — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.instaPaymentrule. Asserts that the input is a valid InstaPayment credit card number, balanced spaces and/or dashes are allowed.- CreditcardJcb — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.jcbrule. Asserts that the input is a valid JCB credit card number, balanced spaces and/or dashes are allowed.- CreditcardLaser — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.laserrule. Asserts that the input is a valid Laser credit card number, balanced spaces and/or dashes are allowed.- CreditcardMaestro — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.maestrorule. Asserts that the input is a valid Maestro credit card number, balanced spaces and/or dashes are allowed.- CreditcardMastercard — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.mastercardrule. Asserts that the input is a valid Mastercard credit card number, balanced spaces and/or dashes are allowed.- CreditcardMir — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.mirrule. Asserts that the input is a valid MIR Payment System card number, balanced spaces and/or dashes are allowed.- CreditcardUatp — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.uatprule. Asserts that the input is a valid UATP credit card number, balanced spaces and/or dashes are allowed.- CreditcardVisa — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
creditcard.visarule. Asserts that the input is a valid Visa credit card number, balanced spaces and/or dashes are allowed.- Currency — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
currencyrule. Asserts that the input is a valid currency code (default: "ISO 4217 alpha"; numeric: "ISO 4217 numeric").- CurrencyName — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
currency.namerule. Asserts that the input is a valid currency name (as in ISO 4217).- Cvv — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
cvvrule. 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#constraints — Property 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#current — Property in class Validator
The currently validated data key.
- $ Validator#context — Property 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
- Definition — Class in namespace MAKS\Mighty\Rule
Rule definition class.
- $ Definition#definition — Property 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
falseor 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
xoroperator.- 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
domainrule. Asserts that the input is a domain.- Validation::domainIsActive() — Method in class Validation
Adds
domain.isActiverule. 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
datetimerule. Asserts that the input is a valid datetime string/object.- Validation::datetimeEq() — Method in class Validation
Adds
datetime.eqrule. 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.birthdayrule. 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.formatrule. Asserts that the input is a valid datetime with the given format.- Validation::datetimeFormatGlobal() — Method in class Validation
Adds
datetime.format.globalrule. 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.localrule. Asserts that the input looks like a valid local datetime string as defined in the HTML5 specification.- Validation::datestamp() — Method in class Validation
Adds
datestamprule. 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.ymdrule. 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.dmyrule. 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.mdyrule. Asserts that the input looks like a human MDY-formatted datestamp, separated with dot, dash, or slash.- Validation::double() — Method in class Validation
Adds
doublerule. An alias for thefloatrule.- Validation::date() — Method in class Validation
Adds
daterule. An alias for thedatetimerule.- Validation::dateEquals() — Method in class Validation
Adds
date.equalsrule. An alias for thedatetime.eqrule.- Validation::dateBefore() — Method in class Validation
Adds
date.beforerule. An alias for thedatetime.ltrule.- Validation::dateBeforeOrEquals() — Method in class Validation
Adds
date.beforeOrEqualsrule. An alias for thedatetime.lterule.- Validation::dateAfter() — Method in class Validation
Adds
date.afterrule. An alias for thedatetime.gtrule.- Validation::dateAfterOrEquals() — Method in class Validation
Adds
date.afterOrEqualsrule. An alias for thedatetime.gterule.- Validation::dateFormat() — Method in class Validation
Adds
date.formatrule. An alias for thedatetime.formatrule.- Date — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
daterule. An alias for thedatetimerule.- DateAfter — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
date.afterrule. An alias for thedatetime.gtrule.- DateAfterOrEquals — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
date.afterOrEqualsrule. An alias for thedatetime.gterule.- DateBefore — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
date.beforerule. An alias for thedatetime.ltrule.- DateBeforeOrEquals — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
date.beforeOrEqualsrule. An alias for thedatetime.lterule.- DateEquals — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
date.equalsrule. An alias for thedatetime.eqrule.- DateFormat — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
date.formatrule. An alias for thedatetime.formatrule.- Datestamp — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datestamprule. Asserts that the input looks like a human datestamp, DMY or MDY format, separated with dot, dash, or slash.- DatestampDmy — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datestamp.dmyrule. Asserts that the input looks like a human DMY-formatted datestamp, separated with dot, dash, or slash.- DatestampMdy — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datestamp.mdyrule. Asserts that the input looks like a human MDY-formatted datestamp, separated with dot, dash, or slash.- DatestampYmd — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datestamp.ymdrule. Asserts that the input looks like a human YMD-formatted datestamp, separated with dot, dash, or slash.- Datetime — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetimerule. Asserts that the input is a valid datetime string/object.- DatetimeBirthday — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetime.birthdayrule. Asserts that the input is a datetime string/object that has birthday today. Input should preferably be in "YYYY-MM-DD" format.- DatetimeEq — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetime.eqrule. Asserts that the input is a datetime string/object equal to the given datetime string.- DatetimeFormat — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetime.formatrule. Asserts that the input is a valid datetime with the given format.- DatetimeFormatGlobal — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetime.format.globalrule. Asserts that the input looks like a valid global datetime string as defined in the HTML5 specification.- DatetimeFormatLocal — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetime.format.localrule. Asserts that the input looks like a valid local datetime string as defined in the HTML5 specification.- DatetimeGt — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetime.gtrule. Asserts that the input is a datetime string/object greater than (after) the given datetime string.- DatetimeGte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetime.gterule. Asserts that the input is a datetime string/object greater than (after) or equal to the given datetime string.- DatetimeLt — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetime.ltrule. Asserts that the input is a datetime string/object less than (before) the given datetime string.- DatetimeLte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
datetime.lterule. Asserts that the input is a datetime string/object less than (before) or equal to the given datetime string.- Declined — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
declinedrule. 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.- Digit — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
digitrule. Asserts that the input consists of a digits only (numeric characters).- Domain — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
domainrule. Asserts that the input is a domain.- DomainIsActive — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
domain.isActiverule. Asserts that the input is an active domain. Works with domains and emails.- Double — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
doublerule. An alias for thefloatrule.- $ Validator#data — Property in class Validator
Currently loaded data.
E
- Engine — Class 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.
- Exception — Class 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
falseor 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
emailrule. 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
equalsrule. 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
emojirule. Asserts that the input contains an emoji.- Validation::esn() — Method in class Validation
- .
- Email — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
emailrule. Asserts that the input is an email address.- EmailWithUnicode — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
email.withUnicoderule. Asserts that the input is an email address (unicode allowed).- Emoji — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
emojirule. Asserts that the input contains an emoji.- EmptyConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
emptyrule. Asserts that the input is empty using empty() language construct (is blank, i.e. empty string, empty array, false, null, or 0).- Equals — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
equalsrule. Asserts that the input is equal to the given value. Works with scalar types and null. Comparison operator is "==".- Esn — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
esnrule. Asserts that the input is a valid ESN (Electronic Serial Number).- $ Validator#errors — Property in class Validator
Validatable object validation errors.
- Expression — Class in namespace MAKS\Mighty\Validation
Validation expression builder.
- $ Validator#errors — Property 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
floatrule. Asserts that the input is a float.- Validation::floatLike() — Method in class Validation
Adds
floatLikerule. 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.allowThousandsrule. 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.isFilerule. Asserts that the input is a file.- Validation::fileIsLink() — Method in class Validation
Adds
file.isLinkrule. Asserts that the input is a link.- Validation::fileIsDirectory() — Method in class Validation
Adds
file.isDirectoryrule. Asserts that the input is a directory.- Validation::fileIsExecutable() — Method in class Validation
Adds
file.isExecutablerule. Asserts that the input is a file and is executable.- Validation::fileIsWritable() — Method in class Validation
Adds
file.isWritablerule. Asserts that the input is a file and is writable.- Validation::fileIsReadable() — Method in class Validation
Adds
file.isReadablerule. Asserts that the input is a file and is readable.- Validation::fileIsUploaded() — Method in class Validation
Adds
file.isUploadedrule. Asserts that the input is a file that is uploaded via HTTP POST.- Validation::fileSize() — Method in class Validation
Adds
file.sizerule. 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.lterule. 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.gterule. 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.dirnamerule. Asserts that the input is a file and its dirname is equal to the given dirname.- Validation::fileBasename() — Method in class Validation
Adds
file.basenamerule. Asserts that the input is a file and its basename is equal to the given basename.- Validation::fileFilename() — Method in class Validation
Adds
file.filenamerule. Asserts that the input is a file and its filename is equal to the given filename.- Validation::fileExtension() — Method in class Validation
Adds
file.extensionrule. Asserts that the input is a file and its extension is equal to the given extension.- Validation::fileMime() — Method in class Validation
Adds
file.mimerule. 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
filledrule. An alias for therequiredrule.- File — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
filerule. Asserts that the input is a file (can be a file, a link, or a directory).- FileBasename — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.basenamerule. Asserts that the input is a file and its basename is equal to the given basename.- FileDirname — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.dirnamerule. Asserts that the input is a file and its dirname is equal to the given dirname.- FileExtension — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.extensionrule. Asserts that the input is a file and its extension is equal to the given extension.- FileFilename — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.filenamerule. Asserts that the input is a file and its filename is equal to the given filename.- FileIsDirectory — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.isDirectoryrule. Asserts that the input is a directory.- FileIsExecutable — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.isExecutablerule. Asserts that the input is a file and is executable.- FileIsFile — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.isFilerule. Asserts that the input is a file.- FileIsLink — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.isLinkrule. Asserts that the input is a link.- FileIsReadable — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.isReadablerule. Asserts that the input is a file and is readable.- FileIsUploaded — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.isUploadedrule. Asserts that the input is a file that is uploaded via HTTP POST.- FileIsWritable — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.isWritablerule. Asserts that the input is a file and is writable.- FileMime — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.mimerule. Asserts that the input is a file and its MIME type is one of the given MIME types.- FileSize — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.sizerule. Asserts that the input is a file and the size is equal to the given size in bytes.- FileSizeGte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.size.gterule. Asserts that the input is a file and the size is greater than or equal to the given size in bytes.- FileSizeLte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
file.size.lterule. Asserts that the input is a file and the size is less than or equal to the given size in bytes.- Filled — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
filledrule. An alias for therequiredrule.- FloatConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
floatrule. Asserts that the input is a float.- FloatLike — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
floatLikerule. Asserts that the input is a value that can be parsed as a float within the specifed range.- FloatLikeAllowThousands — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
floatLike.allowThousandsrule. Asserts that the input is a value that can be parsed as a float within the specifed range.- Forbidden — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
forbiddenrule. 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.
- Geolocation — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
geolocationrule. Asserts that the input is a valid geolocation (latitude and longitude coordinates combination).- Graph — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
graphrule. 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
- InexecutableRuleException — Class in namespace MAKS\Mighty\Exception
Exception thrown when validation rule execution fails.
- InvalidBitwiseExpressionException — Class in namespace MAKS\Mighty\Exception
Exception thrown when a bitwise expression is invalid.
- InvalidRuleAliasException — Class in namespace MAKS\Mighty\Exception
Exception thrown when an attempt is made to create a rule alias that is invalid.
- InvalidRuleDefinitionException — Class in namespace MAKS\Mighty\Exception
Exception thrown when rule definition is invalid.
- InvalidRuleMacroException — Class in namespace MAKS\Mighty\Exception
Exception thrown when an attempt is made to create a rule macro that is invalid.
- InvalidRuleStatementException — Class in namespace MAKS\Mighty\Exception
Exception thrown when rule statement is invalid.
- InvalidValidationExpressionException — Class in namespace MAKS\Mighty\Exception
Exception thrown when a validation expression is invalid.
- $ Rule#input — Property in class Rule
Rule input value.
- Inspector — Class in namespace MAKS\Mighty\Support
Inspector class.
- Inspector::isEqual() — Method in class Inspector
Checks if
$value1and$value2are equal using the==operator.- Inspector::isNotEqual() — Method in class Inspector
Checks if
$value1and$value2are not equal using the!=operator.- Inspector::isIdentical() — Method in class Inspector
Checks if
$value1and$value2are identical using the===operator.- Inspector::isNotIdentical() — Method in class Inspector
Checks if
$value1and$value2are not identical using the!==operator.- Inspector::isLessThan() — Method in class Inspector
Checks if
$value1is less than$value2using the<operator.- Inspector::isLessThanOrEqual() — Method in class Inspector
Checks if
$value1is less than or equal to$value2using the<=operator.- Inspector::isGreaterThan() — Method in class Inspector
Checks if
$value1is greater than$value2using the>operator.- Inspector::isGreaterThanOrEqual() — Method in class Inspector
Checks if
$value1is greater than or equal to$value2using the>=operator.- Inspector::isEmpty() — Method in class Inspector
Determines whether a variable is empty or not.
- $ Memoizer#items — Property 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
integerrule. Asserts that the input is an integer.- Validation::iterable() — Method in class Validation
Adds
iterablerule. Asserts that the input is an iterable.- Validation::integerLike() — Method in class Validation
Adds
integerLikerule. 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.allowOctalrule. 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.allowHexrule. 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
iprule. Asserts that the input is an IP address.- Validation::ipV4() — Method in class Validation
Adds
ip.v4rule. Asserts that the input is an IPv4 address.- Validation::ipV6() — Method in class Validation
Adds
ip.v6rule. Asserts that the input is an IPv6 address.- Validation::ipNotReserved() — Method in class Validation
Adds
ip.notReservedrule. Asserts that the input is an IP address not within reserved IPs range.- Validation::ipNotPrivate() — Method in class Validation
Adds
ip.notPrivaterule. 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.widthrule. 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.lterule. 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.gterule. 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.heightrule. 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.lterule. 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.gterule. 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.dimensionsrule. 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
ifrule. 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.eqrule. Checks the condition between the first argument and the second argument, the condition operator is "==".- Validation::ifNeq() — Method in class Validation
Adds
if.neqrule. Checks the condition between the first argument and the second argument, the condition operator is "!=".- Validation::ifId() — Method in class Validation
Adds
if.idrule. Checks the condition between the first argument and the second argument, the condition operator is "===".- Validation::ifNid() — Method in class Validation
Adds
if.nidrule. Checks the condition between the first argument and the second argument, the condition operator is "!==".- Validation::ifGt() — Method in class Validation
Adds
if.gtrule. Checks the condition between the first argument and the second argument, the condition operator is ">".- Validation::ifGte() — Method in class Validation
Adds
if.gterule. Checks the condition between the first argument and the second argument, the condition operator is ">=".- Validation::ifLt() — Method in class Validation
Adds
if.ltrule. Checks the condition between the first argument and the second argument, the condition operator is "<".- Validation::ifLte() — Method in class Validation
Adds
if.lterule. Checks the condition between the first argument and the second argument, the condition operator is "<=".- Validation::in() — Method in class Validation
Adds
inrule. 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
intrule. An alias for theintegerrule.- Validation::is() — Method in class Validation
Adds
isrule. An alias for theequalsrule.- Constraint::isValid() — Method in class Constraint
Checks if the given value is valid.
- Iban — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
ibanrule. 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.- IfConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
ifrule. Checks the condition between the first argument and the second argument, the condition operator can also be specified as the third argument.- IfEq — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
if.eqrule. Checks the condition between the first argument and the second argument, the condition operator is "==".- IfGt — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
if.gtrule. Checks the condition between the first argument and the second argument, the condition operator is ">".- IfGte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
if.gterule. Checks the condition between the first argument and the second argument, the condition operator is ">=".- IfId — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
if.idrule. Checks the condition between the first argument and the second argument, the condition operator is "===".- IfLt — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
if.ltrule. Checks the condition between the first argument and the second argument, the condition operator is "<".- IfLte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
if.lterule. Checks the condition between the first argument and the second argument, the condition operator is "<=".- IfNeq — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
if.neqrule. Checks the condition between the first argument and the second argument, the condition operator is "!=".- IfNid — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
if.nidrule. Checks the condition between the first argument and the second argument, the condition operator is "!==".- Image — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
imagerule. Asserts that the input is an image file (jpg, jpeg, png, gif, bmp, svg, or webp).- ImageDimensions — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
image.dimensionsrule. 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.- ImageHeight — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
image.heightrule. Asserts that the input is an image and its height is equal to the given height in pixels.- ImageHeightGte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
image.height.gterule. Asserts that the input is an image and its height is greater than or equal to the given height in pixels.- ImageHeightLte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
image.height.lterule. Asserts that the input is an image and its height is less than or equal to the given height in pixels.- ImageRatio — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
image.ratiorule. Asserts that the input is an image and its aspect ratio is equal to the given ratio (ratio must be specified like "16:9").- ImageWidth — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
image.widthrule. Asserts that the input is an image and its width is equal to the given width in pixels.- ImageWidthGte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
image.width.gterule. Asserts that the input is an image and its width is greater than or equal to the given width in pixels.- ImageWidthLte — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
image.width.lterule. Asserts that the input is an image and its width is less than or equal to the given width in pixels.- Imei — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
imeirule. Asserts that the input is a valid IMEI (International Mobile Station Equipment Identity Number).- ImeiSv — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
imei.svrule. Asserts that the input is a valid IMEI-SV (International Mobile Station Equipment Identity and Software Version Number).- In — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
inrule. Asserts that the input is in the given values. Works with scalar types and null.- IntConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
intrule. An alias for theintegerrule.- Integer — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
integerrule. Asserts that the input is an integer.- IntegerLike — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
integerLikerule. Asserts that the input is a value that can be parsed as an integer within the specifed range.- IntegerLikeAllowHex — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
integerLike.allowHexrule. Asserts that the input is a value that can be parsed as an integer within the specifed range and can be in hexadecimal notation.- IntegerLikeAllowOctal — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
integerLike.allowOctalrule. Asserts that the input is a value that can be parsed as an integer within the specifed range and can be in octal notation.- Ip — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
iprule. Asserts that the input is an IP address.- IpNotPrivate — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
ip.notPrivaterule. Asserts that the input is an IP address not within private IPs range.- IpNotReserved — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
ip.notReservedrule. Asserts that the input is an IP address not within reserved IPs range.- IpV4 — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
ip.v4rule. Asserts that the input is an IPv4 address.- IpV6 — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
ip.v6rule. Asserts that the input is an IPv6 address.- Is — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
isrule. An alias for theequalsrule.- Isbn — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
isbnrule. Asserts that the input is a valid ISBN (International Standard Book Number). The type (10/13) can be specifed to narrow the pattern.- Isin — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
isinrule. Asserts that the input is a valid ISIN (International Securities Identification Number).- Issn — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
issnrule. Asserts that the input is a valid ISSN (International Standard Serial Number).- IterableConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
iterablerule. 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
jsonrule. Asserts that the input is a valid JSON.- Json — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
jsonrule. Asserts that the input is a valid JSON.
L
- Validation::lower() — Method in class Validation
Adds
lowerrule. 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
luhnrule. 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
longrule. An alias for theintegerrule.- Validation::length() — Method in class Validation
Adds
lengthrule. An alias for thecountrule.- Language — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
languagerule. Asserts that the input is a valid language code (default: "ISO 639-1"; long: "ISO 639-2/T").- Length — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
lengthrule. An alias for thecountrule.- Locale — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
localerule. 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.- Long — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
longrule. An alias for theintegerrule.- Lower — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
lowerrule. Asserts that the input consists of lowercase characters only.- Luhn — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
luhnrule. 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#labels — Property in class Validator
Currently loaded validation labels.
- Validator::load() — Method in class Validator
Loads the passed path as an array (
include $path).
M
- Maker — Class in namespace MAKS\Mighty
Generates rule constraints classes and markdown table by extracting rules from
Validation::classmetadata.- 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
falseor not specified.- Memoizer — Class in namespace MAKS\Mighty\Support
Memoizer class.
- Validation::mac() — Method in class Validation
Adds
macrule. Asserts that the input is a MAC address.- Validation::matches() — Method in class Validation
Adds
matchesrule. 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
minmaxrule. An alias for thebetweenrule.- $ Constraint#messages — Property in class Constraint
Constraint rules messages overrides.
- Mac — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
macrule. Asserts that the input is a MAC address.- Matches — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
matchesrule. Asserts that the input matches the given pattern. Works with strings only.- Max — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
maxrule. 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).- Meid — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
meidrule. Asserts that the input is a valid MEID (Mobile Equipment Identifier).- Meta — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
metarule. Asserts that the input is a string containing only meta characters (special characters) (i.e. "@, #, $, ...").- Min — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
minrule. 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).- Minmax — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
minmaxrule. An alias for thebetweenrule.- Expression::macro() — Method in class Expression
Writes a macro to the current expression string.
- $ Validator#macros — Property in class Validator
Available validation rules macros.
- $ Validator#messages — Property 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
falseor 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
nullrule. Asserts that the input is null.- Validation::numeric() — Method in class Validation
Adds
numericrule. Asserts that the input is numeric.- Validation::numberIsPositive() — Method in class Validation
Adds
number.isPositiverule. Asserts that the input is a positive number.- Validation::numberIsNegative() — Method in class Validation
Adds
number.isNegativerule. Asserts that the input is a negative number.- Validation::numberIsEven() — Method in class Validation
Adds
number.isEvenrule. Asserts that the input is an even number.- Validation::numberIsOdd() — Method in class Validation
Adds
number.isOddrule. Asserts that the input is an odd number.- Validation::numberIsMultipleOf() — Method in class Validation
Adds
number.isMultipleOfrule. Asserts that the input is a multiple of the given number.- Validation::numberIsFinite() — Method in class Validation
Adds
number.isFiniterule. Asserts that the input is a finite number.- Validation::numberIsInfinite() — Method in class Validation
Adds
number.isInfiniterule. Asserts that the input is an infinite number.- Validation::numberIsNan() — Method in class Validation
Adds
number.isNanrule. Asserts that the input is a not a number.- Validation::nino() — Method in class Validation
- .
- Nino — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
ninorule. Asserts that the input is a valid NINO (UK National Insurance Number).- NullConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
nullrule. Asserts that the input is null.- NumberIsEven — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
number.isEvenrule. Asserts that the input is an even number.- NumberIsFinite — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
number.isFiniterule. Asserts that the input is a finite number.- NumberIsInfinite — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
number.isInfiniterule. Asserts that the input is an infinite number.- NumberIsMultipleOf — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
number.isMultipleOfrule. Asserts that the input is a multiple of the given number.- NumberIsNan — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
number.isNanrule. Asserts that the input is a not a number.- NumberIsNegative — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
number.isNegativerule. Asserts that the input is a negative number.- NumberIsOdd — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
number.isOddrule. Asserts that the input is an odd number.- NumberIsPositive — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
number.isPositiverule. Asserts that the input is a positive number.- NumericConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
numericrule. 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
objectrule. Asserts that the input is an object.- Validation::objectHasProperty() — Method in class Validation
Adds
object.hasPropertyrule. Asserts that the input has the given property.- Validation::objectHasMethod() — Method in class Validation
Adds
object.hasMethodrule. Asserts that the input has the given method.- Validation::objectIsStringable() — Method in class Validation
- method.
- Validation::objectIsInstanceOf() — Method in class Validation
Adds
object.isInstanceOfrule. Asserts that the input is an instance of the given class.- Validation::objectIsSubclassOf() — Method in class Validation
Adds
object.isSubclassOfrule. Asserts that the input is a subclass of the given class.- Validation::obj() — Method in class Validation
Adds
objrule. An alias for theobjectrule.- Validation::optional() — Method in class Validation
Adds
optionalrule. An alias for theallowedrule.- Obj — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
objrule. An alias for theobjectrule.- ObjectConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
objectrule. Asserts that the input is an object.- ObjectHasMethod — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
object.hasMethodrule. Asserts that the input has the given method.- ObjectHasProperty — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
object.hasPropertyrule. Asserts that the input has the given property.- ObjectIsInstanceOf — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
object.isInstanceOfrule. Asserts that the input is an instance of the given class.- ObjectIsStringable — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
object.isStringablerule. Asserts that the input implements __toString() method.- ObjectIsSubclassOf — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
object.isSubclassOfrule. Asserts that the input is a subclass of the given class.- Optional — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
optionalrule. An alias for theallowedrule.- 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
falseor not specified.- $ Memoizer#pools — Property in class Memoizer
- Memoizer::pool() — Method in class Memoizer
- Validation::punct() — Method in class Validation
Adds
punctrule. Asserts that the input consists of punctuation characters only.- Validation::print() — Method in class Validation
Adds
printrule. 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.keywordrule. Asserts that the input is a PHP language Keyword.- Validation::phpReserved() — Method in class Validation
Adds
php.reservedrule. Asserts that the input is a PHP language reserved word.- Validation::phpReservedExtra() — Method in class Validation
Adds
php.reserved.extrarule. Asserts that the input is a PHP language reserved word including soft reserved words.- Validation::pattern() — Method in class Validation
Adds
patternrule. An alias for thematchesrule.- Validation::present() — Method in class Validation
Adds
presentrule. An alias for therequiredrule.- Password — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
passwordrule. 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).- Pattern — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
patternrule. An alias for thematchesrule.- Phone — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
phonerule. Asserts that the input is a valid phone number (supports: North America, Europe and most Asian and Middle East countries).- PhpKeyword — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
php.keywordrule. Asserts that the input is a PHP language Keyword.- PhpReserved — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
php.reservedrule. Asserts that the input is a PHP language reserved word.- PhpReservedExtra — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
php.reserved.extrarule. Asserts that the input is a PHP language reserved word including soft reserved words.- Present — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
presentrule. An alias for therequiredrule.- PrintConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
printrule. Asserts that the input consists of printable characters only.- Punct — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
punctrule. 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
- Result — Class in namespace MAKS\Mighty
Result class.
- Result::removeAttribute() — Method in class Result
Removes an attribute from the result object.
- Rule — Class in namespace MAKS\Mighty
- Inspector::return() — Method in class Inspector
Returns the passed value.
- Validation::resource() — Method in class Validation
Adds
resourcerule. Asserts that the input is a resource.- Validation::regexp() — Method in class Validation
Adds
regexprule. Asserts that the input matches a Perl-compatible regular expression.- Validation::required() — Method in class Validation
- .
- Validation::roman() — Method in class Validation
Adds
romanrule. Asserts that the input is a valid roman number.- Validation::regex() — Method in class Validation
Adds
regexrule. Asserts that the input is a valid regular expression.Aliases:
- Validation::real() — Method in class Validation
Adds
realrule. An alias for thefloatrule.- Validation::range() — Method in class Validation
Adds
rangerule. An alias for thebetweenrule.- Rule — Class in namespace MAKS\Mighty\Validation\Constraint
Validates any data using a single validation rule.
- Range — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
rangerule. An alias for thebetweenrule.- Real — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
realrule. An alias for thefloatrule.- Regex — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
regexrule. Asserts that the input is a valid regular expression.- Regexp — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
regexprule. Asserts that the input matches a Perl-compatible regular expression.- Required — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
requiredrule. Asserts that the input is required (is not blank, i.e. not a empty string or null).- ResourceConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
resourcerule. Asserts that the input is a resource.- Roman — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
romanrule. Asserts that the input is a valid roman number.- $ Validator#reflections — Property in class Validator
Validatable objects reflections cache.
- $ Validator#results — Property in class Validator
Validatable object validation results.
- Expression::rule() — Method in class Expression
Writes a rule to the current expression string.
- Regex — Class in namespace MAKS\Mighty\Validation\Pattern
Holder for a collection o f regular expressions.
- $ Validator#rules — Property in class Validator
Available validation rules.
- $ Validator#results — Property in class Validator
Validations results against the currently loaded data.
- Validator::reset() — Method in class Validator
Resets validator's internal state.
S
- $ Rule#statement — Property 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
- Serializer — Class 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
stringrule. Asserts that the input is a string.- Validation::scalar() — Method in class Validation
Adds
scalarrule. Asserts that the input is a scalar.- Validation::space() — Method in class Validation
Adds
spacerule. 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.lengthrule. Asserts that the input is a string that is exactly the given length.- Validation::stringWordsCount() — Method in class Validation
Adds
string.wordsCountrule. Asserts that the input is a string containing exactly the given count of words.- Validation::serialized() — Method in class Validation
Adds
serializedrule. Asserts that the input is a valid PHP serialized data.- Validation::slug() — Method in class Validation
Adds
slugrule. Asserts that the input is a valid slug.- Validation::spaceless() — Method in class Validation
Adds
spacelessrule. 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
strrule. An alias for thestringrule.- Validation::stream() — Method in class Validation
Adds
streamrule. An alias for theresourcerule.- Validation::same() — Method in class Validation
Adds
samerule. An alias for theequalsrule.- Validation::size() — Method in class Validation
Adds
sizerule. An alias for thecountrule.- $ Constraint#strategy — Property 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.
- Same — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
samerule. An alias for theequalsrule.- Scalar — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
scalarrule. Asserts that the input is a scalar.- Serialized — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
serializedrule. Asserts that the input is a valid PHP serialized data.- Sin — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
sinrule. Asserts that the input is a valid SIN (CA Social Insurance Number).- Size — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
sizerule. An alias for thecountrule.- Slug — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
slugrule. Asserts that the input is a valid slug.- Space — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
spacerule. Asserts that the input consists of whitespace characters only.- Spaceless — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
spacelessrule. Asserts that the input is a string containing no whitespace characters.- Ssn — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
ssnrule. Asserts that the input is a valid SSN (Social Security Number).- Str — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
strrule. An alias for thestringrule.- Stream — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
streamrule. An alias for theresourcerule.- StringCharset — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
string.charsetrule. Asserts that the input is encoded in one of the given charsets (aliases included). The check is done in a case-sensitive manner.- StringConstraint — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
stringrule. Asserts that the input is a string.- StringContains — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
string.containsrule. Asserts that the input contains the given substring. A second boolean argument can be specified to enable strict mode (case-sensitive).- StringEndsWith — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
string.endsWithrule. Asserts that the input ends with the given substring. A second boolean argument can be specified to enable strict mode (case-sensitive).- StringLength — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
string.lengthrule. Asserts that the input is a string that is exactly the given length.- StringStartsWith — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
string.startsWithrule. Asserts that the input starts with the given substring. A second boolean argument can be specified to enable strict mode (case-sensitive).- StringWordsCount — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
string.wordsCountrule. Asserts that the input is a string containing exactly the given count of words.- Shape — Class in namespace MAKS\Mighty\Validation\Constraint
Validates the shape of an array or object (traversable or not).
- SmartEnum — Class 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#translator — Property 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.
- Throwable — Class in namespace MAKS\Mighty
Mighty throwable interface.
- Validation::type() — Method in class Validation
Adds
typerule. 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
timestamprule. 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.12rule. 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.hmsrule. Asserts that the input looks like a human timestamp, 24 or 12 hours format with seconds.- Validation::timestampHm() — Method in class Validation
Adds
timestamp.hmrule. Asserts that the input looks like a human timestamp, 24 or 12 hours format without seconds.- Validation::timestampMs() — Method in class Validation
Adds
timestamp.msrule. Asserts that the input looks like a human timestamp, containing minutes and seconds only.- Validation::text() — Method in class Validation
Adds
textrule. Asserts that the input is a string containing letters and punctuation from any language.- Text — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
textrule. Asserts that the input is a string containing letters and punctuation from any language.- Timestamp — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
timestamprule. Asserts that the input looks like a human timestamp, 24 or 12 hours format with or without seconds.- Timestamp12 — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
timestamp.12rule. 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- TimestampHm — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
timestamp.hmrule. Asserts that the input looks like a human timestamp, 24 or 12 hours format without seconds.- TimestampHms — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
timestamp.hmsrule. Asserts that the input looks like a human timestamp, 24 or 12 hours format with seconds.- TimestampMs — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
timestamp.msrule. Asserts that the input looks like a human timestamp, containing minutes and seconds only.- Timezone — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
timezonerule. Asserts that the input is a valid timezone identifier (default: case-insensitive; strict: case-sensitive).- Type — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
typerule. Asserts that the input is one of the given types.- TypeDebug — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
type.debugrule. Asserts that the input is of the given type using get_debug_type().- $ Expression#tokens — Property in class Expression
Expression string buffer tokens.
- SmartEnum::toScalar() — Method in class SmartEnum
U
- UnknownValidationRuleException — Class 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.
- Utility — Class in namespace MAKS\Mighty\Support
Holder for various miscellaneous utility function.
- Validation::upper() — Method in class Validation
Adds
upperrule. Asserts that the input consists of uppercase characters only.- Validation::url() — Method in class Validation
Adds
urlrule. Asserts that the input is a URL.- Validation::urlWithPath() — Method in class Validation
Adds
url.withPathrule. Asserts that the input is a URL that contains a path.- Validation::urlWithQuery() — Method in class Validation
Adds
url.withQueryrule. 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.
- Upper — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
upperrule. Asserts that the input consists of uppercase characters only.- Url — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
urlrule. Asserts that the input is a URL.- UrlWithPath — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
url.withPathrule. Asserts that the input is a URL that contains a path.- UrlWithQuery — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
url.withQueryrule. Asserts that the input is a URL that contains a query.- Username — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
usernamerule. 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).- Uuid — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
uuidrule. Asserts that the input is a valid UUID. The version (v1/v2/v3/v4/v5) can be specifed to narrow the pattern.
V
- ValidationFailedException — Class in namespace MAKS\Mighty\Exception
Exception thrown when validation is not successful or failed.
- ValidationLogicException — Class in namespace MAKS\Mighty\Exception
Exception thrown when validation is impossible or validation expression is illogical.
- ValidatorThrowable — Class 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
falseor not specified.- Validation — Class in namespace MAKS\Mighty\Rule
Validation rule names and aliases constants.
- Validation — Class in namespace MAKS\Mighty
Validator aware validation expression builder.
- $ Validation#validator — Property in class Validation
Associated Validator instance.
- Validation::version() — Method in class Validation
Adds
versionrule. Asserts that the input is a valid semantic version number.- Validation::vin() — Method in class Validation
- .
- $ Constraint#validator — Property in class Constraint
Constraint validator instance.
- $ Constraint#validation — Property 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.
- Version — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
versionrule. Asserts that the input is a valid semantic version number.- Vin — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
vinrule. 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.
- Valid — Class 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.
- ValidatableObjectInterface — Class in namespace MAKS\Mighty\Validation\Constraint
The interface for all validatable objects. See
ValidatableObjectTraitfor implementation.- ValidatableObjectInterface::validate() — Method in class ValidatableObjectInterface
Validates the object and returns the validation result.
- ValidatableObjectTrait — Class in namespace MAKS\Mighty\Validation\Constraint
The trait for implementing
ValidatableObjectInterface.- ValidatableObjectTrait::validate() — Method in class ValidatableObjectTrait
- ValidatesAny — Class in namespace MAKS\Mighty\Validation\Constraint
Constraint interface.
- ValidatesAny::validate() — Method in class ValidatesAny
Validates the given value and returns the validation result.
- ValidatesMany — Class 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.
- ValidatesOne — Class 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.
- Validator — Class 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
- Validator — Class in namespace MAKS\Mighty
- $ Validator#validations — Property 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
wordsrule. Asserts that the input is a string containing only words and spaces without any other character.- Words — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
wordsrule. 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
xdigitrule. Asserts that the input represent hexadecimal digits.- Validation::xml() — Method in class Validation
Adds
xmlrule. Asserts that the input is a valid XML.- Xdigit — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
xdigitrule. Asserts that the input represent hexadecimal digits.- Xml — Class in namespace MAKS\Mighty\Validation\Constraint\Rule
Adds
xmlrule. 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.