NetefxValidator::setRules
if the first parameter is not an array, or we have more than one parameter, collate all parameters to an array, otherwise use the passed array
Signature
public function setRules([array|mixed
$items = NULL] )
Parameters
$items
— object