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