final class ValidPostcodeRule implements ValidationRuleInterface (View source)

Traits

Methods

matchesString(mixed $value, string $pattern)
bool
matchesScalar(mixed $value, string $pattern)
bool
isEmptyString(string|null $value)
bool
formatDialingCode(string $number)
array
bool
validate(mixed $value, string|null $param, array $data)
bool

Details

matchesString

protected bool matchesString(mixed $value, string $pattern)

No description

Parameters

mixed $value
string $pattern

Return Value

bool

matchesScalar

protected bool matchesScalar(mixed $value, string $pattern)

No description

Parameters

mixed $value
string $pattern

Return Value

bool

isEmptyString

protected bool isEmptyString(string|null $value)

No description

Parameters

string|null $value

Return Value

bool

getPhoneDialingCode

protected array getPhoneDialingCode()

No description

Return Value

array

formatDialingCode

protected array formatDialingCode(string $number)

No description

Parameters

string $number

Return Value

array

validate

bool validate(mixed $value, string|null $param, array $data)

No description

Parameters

mixed $value
string|null $param
array $data

Return Value

bool