Trait Yiisoft\Hydrator\Validator\ValidatedInputTrait
Implementation of {@see ValidatedInputInterface}.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getValidationResult() | Yiisoft\ |
|
| processValidationResult() | Yiisoft\ |
Method Details
| public \ |
public function getValidationResult(): Result
{
if (empty($this->validationResult)) {
throw new LogicException('Validation result is not set.');
}
return $this->validationResult;
}
| public void processValidationResult ( \ | ||
| $result | \ |
|
public function processValidationResult(Result $result): void
{
$this->validationResult = $result;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.