\Brickrouge\ValidatorTimeZoneValidator

Validates a time zone identifier.

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
DEFAULT_MESSAGE
find_best_match()
No protected properties found
N/A
No private methods found
$message
N/A

Constants

DEFAULT_MESSAGE

DEFAULT_MESSAGE

Properties

$message

$message : string

Type

string

Methods

__construct()

__construct(string  $message = self::DEFAULT_MESSAGE) 

Parameters

string $message

__invoke()

__invoke(\ICanBoogie\Errors  $errors, \Brickrouge\Element  $element, mixed  $value) : boolean

Validates the value provided.

Parameters

\ICanBoogie\Errors $errors

Used to collect error messages.

\Brickrouge\Element $element

Target element.

mixed $value

The value to validate.

Returns

boolean —

true if the value is valid, false otherwise.

find_best_match()

find_best_match(string  $value, array  $identifiers) : string

Find best possible match.

Parameters

string $value
array $identifiers

Returns

string