class Url implements ParameterizedRule (View source)

Traits

Properties

protected string[]|null $protocols

Methods

string
__toString()

Convert the rule to a validation string.

string
formatParameters(array $parameters)

Format parameters for a legacy validation rule string.

Url
protocols(array $protocols)

Specify the allowed URL protocols.

array
toArray()

Get the rule name followed by its parameters.

Details

string __toString()

Convert the rule to a validation string.

Return Value

string

protected string formatParameters(array $parameters)

Format parameters for a legacy validation rule string.

Parameters

array $parameters

Return Value

string

Url protocols(array $protocols)

Specify the allowed URL protocols.

Parameters

array $protocols

Return Value

Url

array toArray()

Get the rule name followed by its parameters.

Return Value

array