ICanBoogie/Validate master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Validate
      • Reader
      • Validation
      • Validator
      • ValidatorProvider

Classes

  • AbstractComparisonValidator
  • AbstractRangeValidator
  • AbstractValidator
  • Between
  • BetweenLength
  • Blank
  • Boolean
  • Email
  • Equal
  • Identical
  • IsFalse
  • IsNull
  • IsTrue
  • JSON
  • Max
  • MaxLength
  • Min
  • MinLength
  • NotBetween
  • NotBetweenLength
  • NotBlank
  • NotEqual
  • NotIdentical
  • NotNull
  • Regex
  • Required
  • TimeZone
  • Type
  • URL

Class Type

Validates that a value is of a specific type.

ICanBoogie\Validate\Validator\AbstractValidator implements ICanBoogie\Validate\Validator
Extended by ICanBoogie\Validate\Validator\Type
Namespace: ICanBoogie\Validate\Validator
Located at Validator/Type.php

Methods summary

public boolean
# validate( mixed $value, ICanBoogie\Validate\Context $context )

Parameters

$value
$context

Returns

boolean

Inheritdoc

protected array
# get_params_mapping( )

Returns

array

Inheritdoc

Overrides

ICanBoogie\Validate\Validator\AbstractValidator::get_params_mapping
protected string
# normalize_type( string $type )

Normalizes type.

Normalizes type.

Parameters

$type

Returns

string
protected string|null
# resolve_callable( string $type )

Resolves callable to validate type.

Resolves callable to validate type.

Parameters

$type

Returns

string|null

Methods inherited from ICanBoogie\Validate\Validator\AbstractValidator

normalize_params()

Constants summary

string PARAM_TYPE
# 'type'

Constants inherited from ICanBoogie\Validate\ValidatorOptions

OPTION_IF, OPTION_MESSAGE, OPTION_STOP_ON_ERROR, OPTION_UNLESS

Constants inherited from ICanBoogie\Validate\Validator

ALIAS, DEFAULT_MESSAGE, MESSAGE_ARG_ATTRIBUTE, MESSAGE_ARG_VALIDATOR, MESSAGE_ARG_VALUE

ICanBoogie/Validate master API documentation generated by ApiGen