trait NumericRule (View source)

Methods

void
compileNumber(string $key, string $masque)

Compile Number Rule

void
compileInt(string $key, string $masque)

Compile Int Rule

void
compileFloat(string $key, string $masque)

Compile Float Rule

Details

protected void compileNumber(string $key, string $masque)

Compile Number Rule

[number] Check that the contents of the field is a number

Parameters

string $key
string $masque

Return Value

void

protected void compileInt(string $key, string $masque)

Compile Int Rule

[int] Check that the contents of the field is an integer number

Parameters

string $key
string $masque

Return Value

void

protected void compileFloat(string $key, string $masque)

Compile Float Rule

[float] Check that the field content is a float number

Parameters

string $key
string $masque

Return Value

void