RockLobsterInc\Swv\Rules

MinNumberRule::matches │ public │ CF7 1.0

Returns true if this rule matches the given context.

Метод класса: MinNumberRule{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$MinNumberRule = new MinNumberRule();
$MinNumberRule->matches( $context ): bool;
$context(массив) (обязательный)
Context.

Код MinNumberRule::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;
}