* SPDX-License-Identifier: MIT */ declare(strict_types=1); namespace Respect\Validation\Rules; use Attribute; use Respect\Validation\Result; use Respect\Validation\Rules\Core\Wrapper; #[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] final class Not extends Wrapper { public function evaluate(mixed $input): Result { return $this->rule->evaluate($input)->withToggledModeAndValidation()->withPrefix('not'); } }