interface ValidatorInterface
Same name in this branch
- 11.1.x vendor/symfony/validator/Validator/ValidatorInterface.php \Symfony\Component\Validator\Validator\ValidatorInterface
A validator validates a string as a proper UUID
@psalm-immutable
Hierarchy
- interface \Ramsey\Uuid\Validator\ValidatorInterface
Expanded class hierarchy of ValidatorInterface
All classes that implement ValidatorInterface
4 files declare their use of ValidatorInterface
- FeatureSet.php in vendor/
ramsey/ uuid/ src/ FeatureSet.php - UuidFactory.php in vendor/
ramsey/ uuid/ src/ UuidFactory.php - UuidFactoryInterface.php in vendor/
ramsey/ uuid/ src/ UuidFactoryInterface.php - Validator.php in vendor/
ramsey/ uuid/ src/ Rfc4122/ Validator.php
File
-
vendor/
ramsey/ uuid/ src/ Validator/ ValidatorInterface.php, line 22
Namespace
Ramsey\Uuid\ValidatorView source
interface ValidatorInterface {
/**
* Returns the regular expression pattern used by this validator
*
* @return string The regular expression pattern this validator uses
*
* @psalm-return non-empty-string
*/
public function getPattern() : string;
/**
* Returns true if the provided string represents a UUID
*
* @param string $uuid The string to validate as a UUID
*
* @return bool True if the string is a valid UUID, false otherwise
*/
public function validate(string $uuid) : bool;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ValidatorInterface::getPattern | public | function | Returns the regular expression pattern used by this validator | 2 |
ValidatorInterface::validate | public | function | Returns true if the provided string represents a UUID | 2 |