class ItemTypeRule extends AbstractRule (View source)

Methods

name()

No description

testConditions(string $parameterName, $value, bool $itemType = false)

No description

exceptionMessageOnTestFailure(string $parameterName, $value, bool $itemType = false)

No description

getItemSanityCheck(string $itemName)

The second case which used PHP native functions is voluntarily limited by the native functions provided by PHP, and the possible types defined in xsd_types.yml.

Details

name()

testConditions(string $parameterName, $value, bool $itemType = false)

Parameters

string $parameterName
$value
bool $itemType

exceptionMessageOnTestFailure(string $parameterName, $value, bool $itemType = false)

Parameters

string $parameterName
$value
bool $itemType

protected getItemSanityCheck(string $itemName)

The second case which used PHP native functions is voluntarily limited by the native functions provided by PHP, and the possible types defined in xsd_types.yml.

Parameters

string $itemName