RockLobsterInc\Swv\Rules
MaxNumberRule::matches
Returns true if this rule matches the given context.
Метод класса: MaxNumberRule{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$MaxNumberRule = new MaxNumberRule(); $MaxNumberRule->matches( $context ): bool;
- $context(массив) (обязательный)
- Context.
Код MaxNumberRule::matches() MaxNumberRule::matches CF7 6.2.4.1
public function matches(array $context): bool
{
if (false === parent::matches($context)) {
return false;
}
if (empty($context["text"])) {
return false;
}
return true;
}