ICanBoogie/Validate master
  • Namespace
  • Class

Namespaces

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

Classes

  • Context
  • Message
  • Render
  • Validation
  • ValidationErrors

Interfaces

  • Reader
  • Validator
  • ValidatorOptions
  • ValidatorProvider

Exceptions

  • ParameterIsMissing
  • ValidationFailed

Class Context

Representation of a validation context.

Namespace: ICanBoogie\Validate
Located at Context.php

Methods summary

public mixed|null
# value( string $name )

Retrieves a value from the reader adapter.

Retrieves a value from the reader adapter.

Parameters

$name

Returns

mixed|null
The value, or null if it is not defined.
public mixed
# param( string $name )

Retrieves a parameter from the validator parameters.

Retrieves a parameter from the validator parameters.

Parameters

$name

Returns

mixed

Throws

ICanBoogie\Validate\ParameterIsMissing
if the parameter is not set.
public mixed|null
# option( string $name, mixed|null $default = null )

Retrieves an option from the validator parameters.

Retrieves an option from the validator parameters.

Parameters

$name
$default

Returns

mixed|null
The option value or null if it is not defined.

Properties summary

public string $attribute

The attribute being validated.

The attribute being validated.

#
public mixed $value

The value of the attribute being validated.

The value of the attribute being validated.

#
public ICanBoogie\Validate\Reader $reader

A reader adapter.

A reader adapter.

#
public ICanBoogie\Validate\Validator $validator

The current validator.

The current validator.

#
public array $validator_params

The validator parameters.

The validator parameters.

# []
public string $message

The possible error message for the current validator.

The possible error message for the current validator.

#
public array $message_args

The arguments for the possible error message.

The arguments for the possible error message.

# []
public Message[][] $errors

The collected errors.

The collected errors.

# []
ICanBoogie/Validate master API documentation generated by ApiGen