Flikore Validator
  • Api
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Flikore
    • Validator
      • Exception
      • Interfaces
      • Intl
      • Validators

Classes

  • AfterDateTimeValidator
  • AlphaNumericValidator
  • AlphaValidator
  • BeforeDateTimeValidator
  • DateTimeValidator
  • DateValidator
  • EmailValidator
  • EqualsValidator
  • ExactLengthValidator
  • ExactValueValidator
  • GreaterThanValidator
  • InstanceOfValidator
  • IPv4Validator
  • IPv6Validator
  • LengthBetweenValidator
  • LessThanValidator
  • LetterNumericValidator
  • LetterValidator
  • MaxDateTimeValidator
  • MaxLengthValidator
  • MaxValueValidator
  • MinAgeValidator
  • MinDateTimeValidator
  • MinLengthValidator
  • MinValueValidator
  • NoSpaceValidator
  • NotEmptyValidator
  • NotEqualsValidator
  • NumericValidator
  • OrValidator
  • RecursiveValidator
  • RegexValidator
  • UriValidator
  • ValueBetweenValidator

Class NotEqualsValidator

Validates that a value is not equal to another.

Flikore\Validator\Validator implements Flikore\Validator\Interfaces\IValidator
Extended by Flikore\Validator\Validators\EqualsValidator
Extended by Flikore\Validator\Validators\NotEqualsValidator
Namespace: Flikore\Validator\Validators
Package: Flikore\Validator
Copyright: (c) 2014, George Marques
License: MIT
Author: George Marques <george at georgemarques.com.br>
Version: 0.5.2
Since: 0.4.0
CustomKey: %compare% The value to be compared to.
CustomKey: %strict% Whether the comparison is done in strict form.
Located at Flikore/Validator/Validators/NotEqualsValidator.php

Methods summary

public
# __construct( mixed $compare, boolean $strict = false )

Creates a new Not Equals Validator.

Creates a new Not Equals Validator.

Parameters

$compare
mixed
$compare The value to compare to.
$strict
boolean
$strict Whether the comparison should be strict.

Overrides

Flikore\Validator\Validators\EqualsValidator::__construct
protected boolean
# doValidate( mixed $value )

Executes the real validation so it can be reused.

Executes the real validation so it can be reused.

Parameters

$value
mixed
$value The value to validate.

Returns

boolean
Whether the value pass the validation.

Overrides

Flikore\Validator\Validators\EqualsValidator::doValidate

Methods inherited from Flikore\Validator\Validator

addKeyValue(), applyTemplate(), assert(), getErrorMessage(), isEmpty(), setErrorMessage(), validate()

Magic methods summary

Properties summary

protected string $message
#

The error message for this validator.

The error message for this validator.

Properties inherited from Flikore\Validator\Validators\EqualsValidator

$compare, $strict

Properties inherited from Flikore\Validator\Validator

$values

Flikore Validator API documentation generated by ApiGen 2.8.0