Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
woocommerce-paypal-payments
/
vendor
/
dhii
/
validation-interface
/
src
:
ValidatorInterface.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare(strict_types=1); namespace Dhii\Validation; use Dhii\Validation\Exception\ValidationFailedExceptionInterface; use RuntimeException; /** * Something that can validate a value. */ interface ValidatorInterface { /** * Validates a value. * * @param mixed $value The subject of validation. * * @throws RuntimeException If problem validating. * @throws ValidationFailedExceptionInterface If validation failed. Must extend {@see RuntimeException}. */ public function validate($value): void; }