芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/giga.mgaplay.com.br/vendor/respect/validation/library/Rules/NoneOf.php
* * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ namespace Respect\Validation\Rules; class NoneOf extends AbstractComposite { public function assert($input) { $exceptions = $this->validateRules($input); $numRules = count($this->getRules()); $numExceptions = count($exceptions); if ($numRules !== $numExceptions) { throw $this->reportError($input)->setRelated($exceptions); } return true; } public function validate($input) { foreach ($this->getRules() as $rule) { if ($rule->validate($input)) { return false; } } return true; } }