diff --git a/src/Validators/OptionalValidator.php b/src/Validators/OptionalValidator.php index 0a209b9..ebe139d 100644 --- a/src/Validators/OptionalValidator.php +++ b/src/Validators/OptionalValidator.php @@ -48,4 +48,12 @@ protected function _doValidate($value): Generator yield $error; } } + + /** + * @return IValidator + */ + public function getValidator(): IValidator + { + return $this->_validator; + } }